operator== Operator (Microsoft::WRL)
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at operator== Operator (Microsoft::WRL).
Equality operator for ComPtr and ComPtrRef objects.
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.
true if the objects are equal; otherwise, false.
Header: client.h
Namespace: Microsoft::WRL
Show: