Поделиться через


Шаблоны реляционных функций

Блок, относящийся только к системам Microsoft

template<typename _InterfaceType> bool operator==( 
   int NULL, 
   _com_ptr_t<_InterfaceType>& p  
); 
template<typename _Interface, 
   typename _InterfacePtr> bool operator==( 
   _Interface* i, 
   _com_ptr_t<_InterfacePtr>& p  
); 
template<typename _Interface> bool operator!=( 
   int NULL, 
   _com_ptr_t<_Interface>& p  
); 
template<typename _Interface, 
   typename _InterfacePtr> bool operator!=( 
   _Interface* i, 
   _com_ptr_t<_InterfacePtr>& p  
); 
template<typename _Interface> bool operator<( 
   int NULL, 
   _com_ptr_t<_Interface>& p  
); 
template<typename _Interface, 
   typename _InterfacePtr> bool operator<( 
   _Interface* i, 
   _com_ptr_t<_InterfacePtr>& p  
); 
template<typename _Interface> bool operator>( 
   int NULL, 
   _com_ptr_t<_Interface>& p  
); 
template<typename _Interface, 
   typename _InterfacePtr> bool operator>( 
   _Interface* i, 
   _com_ptr_t<_InterfacePtr>& p  
); 
template<typename _Interface> bool operator<=( 
   int NULL, 
   _com_ptr_t<_Interface>& p  
); 
template<typename _Interface, 
   typename _InterfacePtr> bool operator<=( 
   _Interface* i, 
   _com_ptr_t<_InterfacePtr>& p  
); 
template<typename _Interface> bool operator>=( 
   int NULL, 
   _com_ptr_t<_Interface>& p  
); 
template<typename _Interface, 
   typename _InterfacePtr> bool operator>=( 
   _Interface* i, 
   _com_ptr_t<_InterfacePtr>& p  
);

Параметры

  • i
    Необработанный указатель на интерфейс.

  • p
    Интеллектуальный указатель.

Заметки

Эти шаблоны функции позволяют выполнять сравнение с интеллектуальным указателем, расположенным в правой части оператора сравнения. Они не являются функциями-членами объекта _com_ptr_t.

Завершение блока, относящегося только к системам Microsoft

См. также

Ссылки

Класс _com_ptr_t