Compartilhar via


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.

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

Reference

Microsoft::WRL::Details Namespace