memory
|
An alias template for std_allocator using a type-erased RawAllocator.
This is the same as using a std_allocator with the tag type any_allocator. The implementation is optimized to call fewer virtual functions.
Member Functions | |
std_allocator< T, any_allocator > | select_on_container_copy_construction () const |
pointer | allocate (size_type n, void *=nullptr) |
void | deallocate (pointer p, size_type n) noexcept |
void | construct (U *p, Args &&... args) |
void | destroy (U *p) noexcept |
size_type | max_size () const noexcept |
auto | get_allocator () noexcept -> decltype(std::declval< alloc_reference >().get_allocator()) |
auto | get_allocator () const noexcept -> decltype(std::declval< const alloc_reference >().get_allocator()) |
Related Functions | |
template<typename T , class RawAllocator > | |
any_std_allocator< T > | make_any_std_allocator (RawAllocator &&allocator) noexcept |
bool | operator== (const std_allocator< T, Impl > &lhs, const std_allocator< U, Impl > &rhs) noexcept |
bool | operator!= (const std_allocator< T, Impl > &lhs, const std_allocator< U, Impl > &rhs) noexcept |
auto | make_std_allocator (any_allocator &&allocator) noexcept -> std_allocator< T, typename std::decay< any_allocator >::type > |
|
inherited |
Allocator
concept and forwards to the propagation_traits.
|
inherited |
n
is 1
, it will call allocate_node(sizeof(T), alignof(T))
, otherwise allocate_array(n, sizeof(T), alignof(T))
. n
objects of type T
. RawAllocator
.
|
noexceptinherited |
n
on this object or any copy of it.
|
inherited |
U
at given address using the passed arguments.
|
noexceptinherited |
U
at given address.
|
noexceptinherited |
max_array_size() / sizeof(value_type)
. This is only an upper bound, not the exact maximum.
|
noexceptinherited |
const
) reference to the stored allocator. For stateless allocators: A temporary constructed allocator.
|
noexceptinherited |
const
) reference to the stored allocator. For stateless allocators: A temporary constructed allocator.
|
related |
|
related |
|
related |
|
related |