| description | Learn more about: ComPtrRefBase Class | ||||
|---|---|---|---|---|---|
| title | ComPtrRefBase Class | ||||
| ms.date | 10/03/2018 | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 6d344c1a-cc13-4a3f-8a0d-f167ccb9348f |
Supports the WRL infrastructure and is not intended to be used directly from your code.
template <typename T>
class ComPtrRefBase;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.
| Name | Description |
|---|---|
InterfaceType |
A synonym for the type of template parameter T. |
| Name | Description |
|---|---|
| ComPtrRefBase::operator IInspectable** | Casts the current ptr_ data member to a pointer-to-a-pointer-to the IInspectable interface. |
| ComPtrRefBase::operator IUnknown** | Casts the current ptr_ data member to a pointer-to-a-pointer-to the IUnknown interface. |
| Name | Description |
|---|---|
| ComPtrRefBase::ptr_ | Pointer to the type specified by the current template parameter. |
ComPtrRefBase
Header: client.h
Namespace: Microsoft::WRL::Details
Supports the WRL infrastructure and is not intended to be used directly from your code.
operator IInspectable**() const;Casts the current ptr_ data member to a pointer-to-a-pointer-to the IInspectable interface.
An error is emitted if the current ComPtrRefBase doesn't derive from IInspectable.
This cast is available only if __WRL_CLASSIC_COM__ is defined.
Supports the WRL infrastructure and is not intended to be used directly from your code.
operator IUnknown**() const;Casts the current ptr_ data member to a pointer-to-a-pointer-to the IUnknown interface.
An error is emitted if the current ComPtrRefBase doesn't derive from IUnknown.
Supports the WRL infrastructure and is not intended to be used directly from your code.
T* ptr_;Pointer to the type specified by the current template parameter. ptr_ is the protected data member.