Deleter functor that calls dispose() on the pointer. Useful with std::unique_ptr for objects that require a dispose() call rather than direct deletion.
| Return | Name | Description |
|---|---|---|
void | operator() inline | Calls ptr->dispose() if ptr is non-null. |
inline
inline void operator()(T * ptr)Calls ptr->dispose() if ptr is non-null.
ptr Pointer to dispose; may be nullptr.