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.
Typedefs | |
using | value_type = T |
using | pointer = T * |
using | const_pointer = const T * |
using | reference = T & |
using | const_reference = const T & |
using | size_type = std::size_t |
using | difference_type = std::ptrdiff_t |
using | propagate_on_container_swap = typename prop_traits::propagate_on_container_swap |
using | propagate_on_container_move_assignment = typename prop_traits::propagate_on_container_move_assignment |
using | propagate_on_container_copy_assignment = typename prop_traits::propagate_on_container_copy_assignment |
using | allocator_type = typename alloc_reference::allocator_type |
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 Symbols | |
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. 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. U
at given address using the passed arguments. 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 |