共用方式為


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 類別