ComPtrRefBase Class

 

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 ComPtrRefBase Class.

Supports the WRL infrastructure and is not intended to be used directly from your code.

template <  
   typename T  
>  
class ComPtrRefBase;  

Parameters

T
A ComPtr<T> type or a type derived from it, not merely the interface represented by the ComPtr.

Represents the base class for the ComPtrRef class.

Public Typedefs

NameDescription
InterfaceTypeA synonym for the type of template parameter T.

Public Operators

NameDescription
ComPtrRefBase::operator IInspectable** OperatorCasts the current ptr_ data member to a pointer-to-a-pointer-to the IInspectable interface.
ComPtrRefBase::operator IUnknown** OperatorCasts the current ptr_ data member to a pointer-to-a-pointer-to the IUnknown interface.

Protected Data Members

NameDescription
ComPtrRefBase::ptr_ Data MemberPointer to the type specified by the current template parameter.

ComPtrRefBase

Header: client.h

Namespace: Microsoft::WRL::Details

Microsoft::WRL::Details Namespace

Show: