bsl::allocator_traits<std::allocator<ALLOCATOR_TYPE>>

Synopsis

Declared in <bslma_allocatortraits.h>

template<class ALLOCATOR_TYPE>
struct allocator_traits<std::allocator<ALLOCATOR_TYPE>>
    : std::allocator_traits<std::allocator<ALLOCATOR_TYPE>>

Base Classes

NameDescription
std::allocator_traits<std::allocator<ALLOCATOR_TYPE>>Uniform interface to all allocator types.

Type Aliases

NameDescription
allocator_type The allocator type
const_pointer The allocator's const pointer type.
const_void_pointer The allocator's const void pointer type.
difference_type The allocator's difference type
is_always_equal Whether all instances of the allocator type compare equal.
pointer The allocator's pointer type.
propagate_on_container_copy_assignment How the allocator is propagated on copy assignment
propagate_on_container_move_assignment How the allocator is propagated on move assignment
propagate_on_container_swap How the allocator is propagated on swap
rebind_alloc
rebind_traits
size_type The allocator's size type
value_type The allocated type
void_pointer The allocator's void pointer type.

Static Member Functions

NameDescription
allocate Allocate memory.
construct Construct an object of type _Tp
deallocate Deallocate memory.
destroy Destroy an object of type _Tp
max_size The maximum supported allocation size
select_on_container_copy_construction Obtain an allocator to use when copying a container.