description | title | ms.date | ms.topic | f1_keywords | ms.assetid | |
---|---|---|---|---|---|---|
Learn more about: RemoveIUnknown Class |
RemoveIUnknown Class |
10/03/2018 |
reference |
|
998e711a-7d1a-44c6-a016-e6167aa40863 |
Supports the WRL infrastructure and is not intended to be used directly from your code.
template <typename T>
struct RemoveIUnknown;
template <typename T>
class RemoveIUnknown : public T;
T
A class.
Makes a type that is equivalent to an IUnknown
-based type, but has nonvirtual QueryInterface
, AddRef
, and Release
member functions.
By default, COM methods provide virtual QueryInterface
, AddRef
, and Release
methods. However, ComPtr
doesn't require the overhead of virtual methods. RemoveIUnknown
eliminates that overhead by providing private, nonvirtual QueryInterface
, AddRef
, and Release
methods.
Name | Description |
---|---|
ReturnType |
A synonym for a type that is equivalent to template parameter T but has nonvirtual IUnknown members. |
T
RemoveIUnknown
Header: client.h
Namespace: Microsoft::WRL::Details