|
bit::memory
|
A deleter for custom allocators in the library. More...
#include <allocator_deleter.hpp>
Public Member Functions | |
| allocator_deleter (AllocatorStorage storage) | |
| Constructs an allocator_deleter that uses the referenced allocator for deletion. More... | |
| allocator_deleter (allocator_deleter &&other) noexcept=default | |
| Move-constructs an allocator_deleter from an existing one. More... | |
| allocator_deleter (const allocator_deleter &other) noexcept=default | |
| Copy-constructs the allocator_deleter from an existing one. More... | |
| allocator_deleter & | operator= (allocator_deleter &&other) noexcept=default |
| Move-assigns an allocator_deleter from an existing one. More... | |
| allocator_deleter & | operator= (const allocator_deleter &other) noexcept=default |
| Copy-assigns an allocator_deleter from an existing one. More... | |
| void | operator() (pointer p) |
Deletes the underlying pointer p. More... | |
A deleter for custom allocators in the library.
For any stateless allocator, this leverages EBO to avoid the need for storage.
T. To support polymorphism with deleters, see polymorphic_allocator_deleter which always incurs the size cost.| T | the type being deallocated |
| Allocator | the allocator to deallocate with |
Definition at line 73 of file allocator_deleter.hpp.
|
explicit |
Constructs an allocator_deleter that uses the referenced allocator for deletion.
| storage | the allocator storage |
|
defaultnoexcept |
Move-constructs an allocator_deleter from an existing one.
| other | the other allocator_delete to move |
|
defaultnoexcept |
Copy-constructs the allocator_deleter from an existing one.
| other | the other allocator deleter to copy |
| void bit::memory::allocator_deleter< T, AllocatorStorage >::operator() | ( | pointer | p | ) |
Deletes the underlying pointer p.
| p | the pointer to delete |
|
defaultnoexcept |
Move-assigns an allocator_deleter from an existing one.
| other | the other allocator_deleter to move |
(*this)
|
defaultnoexcept |
Copy-assigns an allocator_deleter from an existing one.
| other | the other allocator_deleter to copy |
(*this)
1.8.13