EnTT 3.14.0
|
Deleter for allocator-aware unique pointers (waiting for C++20). More...
#include <memory.hpp>
Public Types | |
using | allocator_type = Allocator |
Allocator type. | |
using | pointer = typename std::allocator_traits<Allocator>::pointer |
Pointer type. | |
Public Member Functions | |
constexpr | allocation_deleter (const allocator_type &alloc) noexcept(std::is_nothrow_copy_constructible_v< allocator_type >) |
Inherited constructors. | |
constexpr void | operator() (pointer ptr) noexcept(std::is_nothrow_destructible_v< typename allocator_type::value_type >) |
Destroys the pointed object and deallocates its memory. | |
Deleter for allocator-aware unique pointers (waiting for C++20).
Allocator | Type of allocator used to manage memory and elements. |
Definition at line 75 of file memory.hpp.
using entt::allocation_deleter< Allocator >::allocator_type = Allocator |
Allocator type.
Definition at line 77 of file memory.hpp.
using entt::allocation_deleter< Allocator >::pointer = typename std::allocator_traits<Allocator>::pointer |
Pointer type.
Definition at line 79 of file memory.hpp.
|
inlineconstexprnoexcept |
Inherited constructors.
alloc | The allocator to use. |
Definition at line 85 of file memory.hpp.
|
inlineconstexprnoexcept |
Destroys the pointed object and deallocates its memory.
ptr | A valid pointer to an object of the given type. |
Definition at line 92 of file memory.hpp.