支持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::Details