A deleter for bit::memory allocators that allows for polymorphic conversions, at the cost of storing the size of the allocation in the deleter.
More...
|
| | polymorphic_allocator_deleter (AllocatorStorage storage) noexcept |
| | Constructs an polymorphic_allocator_deleter that uses the referenced allocator for deletion. More...
|
| |
| | polymorphic_allocator_deleter (polymorphic_allocator_deleter &&other) noexcept=default |
| | Move-constructs an polymorphic_allocator_deleter from an existing one. More...
|
| |
| | polymorphic_allocator_deleter (const polymorphic_allocator_deleter &other) noexcept=default |
| | Copy-constructs the polymorphic_allocator_deleter from an existing one. More...
|
| |
|
template<typename U , typename = std::enable_if_t<std::is_convertible<U,T>::value>> |
| | polymorphic_allocator_deleter (polymorphic_allocator_deleter< U, AllocatorStorage > &&other) noexcept |
| |
|
template<typename U , typename = std::enable_if_t<std::is_convertible<U,T>::value>> |
| | polymorphic_allocator_deleter (const polymorphic_allocator_deleter< U, AllocatorStorage > &other) noexcept |
| |
| polymorphic_allocator_deleter & | operator= (polymorphic_allocator_deleter &&other) noexcept=default |
| | Move-assigns an polymorphic_allocator_deleter from an existing one. More...
|
| |
| polymorphic_allocator_deleter & | operator= (const polymorphic_allocator_deleter &other) noexcept=default |
| | Copy-assigns an polymorphic_allocator_deleter from an existing one. More...
|
| |
|
template<typename U , typename = std::enable_if_t<std::is_convertible<U,T>::value>> |
| polymorphic_allocator_deleter & | operator= (polymorphic_allocator_deleter< U, AllocatorStorage > &&other) noexcept |
| |
|
template<typename U , typename = std::enable_if_t<std::is_convertible<U,T>::value>> |
| polymorphic_allocator_deleter & | operator= (const polymorphic_allocator_deleter< U, AllocatorStorage > &other) noexcept |
| |
| void | operator() (pointer p) |
| | Deletes the underlying pointer p. More...
|
| |
template<typename T, typename AllocatorStorage>
class bit::memory::polymorphic_allocator_deleter< T, AllocatorStorage >
A deleter for bit::memory allocators that allows for polymorphic conversions, at the cost of storing the size of the allocation in the deleter.
- Template Parameters
-
| T | the underlying type |
| AllocatorStorage | the storage for the allocator |
Definition at line 63 of file polymorphic_allocator_deleter.hpp.