Operadores relacionais _com_ptr_t

Específico da Microsoft

Comparam o objeto de ponteiro inteligente com outro ponteiro inteligente, um ponteiro de interface bruto ou um NULL.

template<typename _OtherIID> 
bool operator==( 
   const _com_ptr_t<_OtherIID>& p 
); 

template<typename _OtherIID>  
bool operator==( 
   _com_ptr_t<_OtherIID>& p 
); 

template<typename _InterfaceType> 
bool operator==( 
   _InterfaceType* p 
); 

template<> 
bool operator==( 
   Interface* p 
); 

template<> 
bool operator==( 
   const _com_ptr_t& p 
) throw(); 

template<> 
bool operator==( 
   _com_ptr_t& p 
) throw(); 

bool operator==( 
   int null 
);

template<typename _OtherIID> 
bool operator!=( 
   const _com_ptr_t<_OtherIID>& p 
); 

template<typename _OtherIID> 
bool operator!=( 
   _com_ptr_t<_OtherIID>& p 
); 

template<typename _InterfaceType> 
bool operator!=( 
   _InterfaceType* p 
); 

bool operator!=( 
   int null 
);

template<typename _OtherIID> 
bool operator<( 
   const _com_ptr_t<_OtherIID>& p 
); 

template<typename _OtherIID> 
bool operator<( 
   _com_ptr_t<_OtherIID>& p 
); 

template<typename _InterfaceType> 
bool operator<( 
   _InterfaceType* p 
);

template<typename _OtherIID> 
bool operator>( 
   const _com_ptr_t<_OtherIID>& p 
); 

template<typename _OtherIID> 
bool operator>(_com_ptr_t< 
   _OtherIID>& p 
); 

template<typename _InterfaceType> 
bool operator>( 
   _InterfaceType* p 
);

template<typename _OtherIID> 
bool operator<=( 
   const _com_ptr_t<_OtherIID>& p 
); 

template<typename _OtherIID> 
bool operator<=( 
   _com_ptr_t<_OtherIID>& p 
); 

template<typename _InterfaceType> 
bool operator<=( 
   _InterfaceType* p 
);

template<typename _OtherIID> 
bool operator>=( 
   const _com_ptr_t<_OtherIID>& p 
); 

template<typename _OtherIID> 
bool operator>=( 
   _com_ptr_t<_OtherIID>& p 
); 

template<typename _InterfaceType> 
bool operator>=( 
   _InterfaceType* p 
);

Comentários

Compara um objeto ponteiro inteligente com outro ponteiro inteligente, um ponteiro de interface bruto ou um NULL. Exceto pelos testes de ponteiro NULL, esses operadores primeiro consultam os dois ponteiros em relação a IUnknown e depois comparam os resultados.

FIM de Específico da Microsoft

Consulte também

Referência

Classe _com_ptr_t