Header com_ptr.h¶
Smart pointer support for Microsoft COM interfaces. Available on Windows only.
An
intrusive_shared_ptrfor COM interfaces, counted withAddRefandRelease.Tmust derive fromIUnknown.Interfaces returned through an output parameter (the usual COM pattern) work with
get_output_paramorstd::out_ptr.
-
struct com_traits¶
Calls
AddRefto add a reference andReleaseto drop one, for anyIUnknown-derived type.
Factory functions¶
Make a
com_shared_ptrfrom a raw interface pointer and increment the reference count.
Make a
com_shared_ptrfrom a raw interface pointer without changing the count.