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

Name

Description

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

Uniform interface to all allocator types.

Type Aliases

Name

Description

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

Name

Description

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.

Created with MrDocs