Skip to content

am_delete

template<MemoryPoolKind Pool, class T> struct am_delete

Deleter for unique pointers.

Template parameter Pool
The memory pool to delete the pointer from.
Template parameter T
The type of the pointer to delete.

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 will automatically call this deleter when the pointer is deleted.

See
ampooldelete, AmUniquePtr