Skip to content

am_delete

template <class T, eMemoryPoolKind Pool>

Deleter for unique/shared pointers.

Detailed Description

Template parameters:

  • T The type of the pointer to delete.
  • 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 also: ampooldelete, AmUniquePtr, AmSharedPtr

Public Functions

Type Name
constexpr am_delete () noexcept
void operator() (T * ptr) noexcept const

Public Functions Documentation

am_delete
constexpr Amplitude::am_delete::am_delete () noexcept
operator()
inline void Amplitude::am_delete::operator() (
    T * ptr
) noexcept const

The documentation for this struct was generated from the following file: include/SparkyStudios/Audio/Amplitude/Core/Memory.h