關聯式的函式樣板
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 特定