am_delete¶
template<class T, eMemoryPoolKind Pool = eMemoryPoolKind_Default> struct am_delete
Deleter for unique/shared pointers.
- Template parameter
T
- The type of the pointer to delete.
- Template parameter
Pool
- The 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
- ampooldelete, AmUniquePtr, AmSharedPtr