Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Equality operator for ComPtr and ComPtrRef objects.
Syntax
WRL_NOTHROW bool operator==(
const ComPtr<T>& a,
const ComPtr<U>& b
);
WRL_NOTHROW bool operator==(
const ComPtr<T>& a,
decltype(__nullptr)
);
WRL_NOTHROW bool operator==(
decltype(__nullptr),
const ComPtr<T>& a
);
WRL_NOTHROW bool operator==(
const Details::ComPtrRef<ComPtr<T>>& a,
const Details::ComPtrRef<ComPtr<U>>& b
);
WRL_NOTHROW bool operator==(
const Details::ComPtrRef<ComPtr<T>>& a,
decltype(__nullptr)
);
WRL_NOTHROW bool operator==(
decltype(__nullptr),
const Details::ComPtrRef<ComPtr<T>>& a
);
WRL_NOTHROW bool operator==(
const Details::ComPtrRef<ComPtr<T>>& a,
void* b
);
WRL_NOTHROW bool operator==(
void* b,
const Details::ComPtrRef<ComPtr<T>>& a
);
Parameters
a
The left object.
b
The right object.
Return Value
true if the objects are equal; otherwise, false.
Requirements
Header: client.h
Namespace: Microsoft::WRL