am_delete¶
template <class T, eMemoryPoolKind Pool>
Deleter for unique/shared pointers.
Detailed Description¶
Template parameters:
TThe type of the pointer to delete.PoolThe memory pool to delete the pointer from.
Note:
This deleter uses the ampooldelete function to delete the pointer. It is templated to ensure that the correct pool is used. This allows for a single implementation of the deleter for all pointer types. The std::unique_ptr and std::shared_ptr will automatically call this deleter when the pointer is deleted.
See also: ampooldelete, AmUniquePtr, AmSharedPtr
Public Functions¶
| Type | Name |
|---|---|
| constexpr | am_delete () noexcept |
| void | operator() (T * ptr) noexcept const |
Public Functions Documentation¶
The documentation for this struct was generated from the following file: include/SparkyStudios/Audio/Amplitude/Core/Memory.h