|
JPL Spatial
Sound spatialization and propagation library
|
#include <JPLSpatial/Memory/Memory.h>
Public Types | |
| using | AForT = typename std::allocator_traits< AllocatorType >::template rebind_alloc< T > |
| using | Traits = std::allocator_traits< AForT > |
Public Member Functions | |
| AllocatorDeleter () noexcept(std::is_nothrow_default_constructible_v< AForT >)=default | |
| AllocatorDeleter (const AllocatorType &allocator) noexcept(std::is_nothrow_constructible_v< AForT, const AllocatorType & >) | |
| AllocatorDeleter (const AForT &allcoator) noexcept(std::is_nothrow_copy_constructible_v< AForT >) | |
| JPL_INLINE void | operator() (T *ptr) noexcept |
A simple deleter to be used for std::unique_ptr and alike, that uses custom allocator, which must match the allocator used to allocate memory for the object.
| using JPL::AllocatorDeleter< T, AllocatorType >::AForT = typename std::allocator_traits<AllocatorType>::template rebind_alloc<T> |
| using JPL::AllocatorDeleter< T, AllocatorType >::Traits = std::allocator_traits<AForT> |
|
defaultnoexcept |
|
inlineexplicitnoexcept |
|
inlineexplicitnoexcept |
|
inlinenoexcept |