Base module
Dispose
Deleter functor that calls dispose() on the pointer.
Dispose
template<class T>
struct DisposeDefined in src/base/include/icy/memory.h:220
Deleter functor that calls dispose() on the pointer. Useful with std::unique_ptr for objects that require a dispose() call rather than direct deletion.
List of all members
| Name | Kind | Owner |
|---|---|---|
operator() | function | Declared here |
Public Methods
| Return | Name | Description |
|---|---|---|
void | operator() inline | Calls ptr->dispose() if ptr is non-null. |
operator()
inline
inline void operator()(T * ptr)Defined in src/base/include/icy/memory.h:224
Calls ptr->dispose() if ptr is non-null.
Parameters
ptrPointer to dispose; may be nullptr.
