_com_ptr_t (Operadores relacionales)
Específicos de Microsoft
Compare el objeto de puntero inteligente con otro puntero inteligente, puntero de interfaz sin formato o NULL.
Sintaxis
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 );
Comentarios
Compara un objeto de puntero inteligente con otro puntero inteligente, puntero de interfaz sin formato o NULL. A excepción de las comprobaciones de puntero nulo, estos operadores consultan primero ambos punteros para determinar si son IUnknown
y comparan los resultados.
FIN de Específicos de Microsoft
Consulte también
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de