|
5.0.0
Freundlich's C++ toolkit
|
A deleter that uses the Release member function to destroy an object.
COM objects have a reference counting mechanism where calling Release on them decrements the reference counter. This mechanism is enabled by deriving from IUnknown
Public Member Functions | |
| template<typename T> | |
| void | operator() (T *const _ptr) const |
Deletes a pointer using Release | |
|
inline |
Deletes a pointer using Release
Calls _ptr->Release() if _ptr is not NULL
| _ptr | The pointer to delete, can be NULL |
| T | Must derive from IUnknown |