Condividi tramite


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.

Syntax

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.

Remarks

Represents the base class for the ComPtrRef class.

Members

Public Typedefs

Name Description
InterfaceType A synonym for the type of template parameter T.

Public Operators

Name Description
ComPtrRefBase::operator IInspectable** Operator Casts the current ptr_ data member to a pointer-to-a-pointer-to the IInspectable interface.
ComPtrRefBase::operator IUnknown** Operator Casts the current ptr_ data member to a pointer-to-a-pointer-to the IUnknown interface.

Protected Data Members

Name Description
ComPtrRefBase::ptr_ Data Member Pointer to the type specified by the current template parameter.

Inheritance Hierarchy

ComPtrRefBase

Requirements

Header: client.h

Namespace: Microsoft::WRL::Details

See Also

Microsoft::WRL::Details Namespace