ComPtrRef::operator!= 运算符

支持WRL基础结构并且不应在代码中直接使用。

bool operator!=(
   const Details::ComPtrRef<ComPtr<T>>& a,
   const Details::ComPtrRef<ComPtr<U>>& b
);

bool operator!=(
   const Details::ComPtrRef<ComPtr<T>>& a,
   decltype(__nullptr)
);

bool operator!=(
   decltype(__nullptr),
   const Details::ComPtrRef<ComPtr<T>>& a
);

bool operator!=(
   const Details::ComPtrRef<ComPtr<T>>& a,
   void* b
);

bool operator!=(
   void* b,
   const Details::ComPtrRef<ComPtr<T>>& a
);

参数

  • a
    为ComPtrRef对象的引用。

  • b
    到另一ComPtrRef对象的引用或指针传递给匿名对象(void*)。

返回值

,如果对象 a 与对象 b,而不是相等的第一个运算符产生 true ;否则,false。

,如果对象 a 与 nullptr,而不是相等的第二个和第三个运算符产生 true ;否则,false。

,如果对象 a 与对象 b,而不是相等的第四和第五运算符产生 true ;否则,false。

备注

指示两ComPtrRef对象是否不相等。

要求

标头: client.h

命名空间: Microsoft::WRL

请参见

参考

Microsoft::WRL::Details 命名空间

ComPtrRef 类