ComPtr::operator Microsoft::WRL::Details::BoolType Operator


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at ComPtr::operator Microsoft::WRL::Details::BoolType Operator.

Indicates whether or not a ComPtr is managing the object lifetime of an interface.

WRL_NOTHROW operator Microsoft::WRL::Details::BoolType() const;  

If an interface is associated with this ComPtr, the address of the BoolStruct::Member data member; otherwise, nullptr.

Header: client.h

Namespace: Microsoft::WRL

ComPtr Class
ComPtr::Get Method