[#bsl-allocator_traits-0ae] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0108.adoc[allocator_traits]<std::allocator<ALLOCATOR_TYPE>> :relfileprefix: ../ :mrdocs: == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR_TYPE> struct xref:bsl/allocator_traits-0108.adoc[allocator_traits]<std::allocator<ALLOCATOR_TYPE>> : std::allocator_traits<std::allocator<ALLOCATOR_TYPE>> ---- == Base Classes [cols="1,4"] |=== | Name| Description | `std::allocator_traits<std::allocator<ALLOCATOR_TYPE>>` | Uniform interface to all allocator types. |=== == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/allocator_traits-0ae/allocator_type.adoc[`allocator_type`] | The allocator type | xref:bsl/allocator_traits-0ae/const_pointer.adoc[`const_pointer`] | The allocator's const pointer type. | xref:bsl/allocator_traits-0ae/const_void_pointer.adoc[`const_void_pointer`] | The allocator's const void pointer type. | xref:bsl/allocator_traits-0ae/difference_type.adoc[`difference_type`] | The allocator's difference type | xref:bsl/allocator_traits-0ae/is_always_equal.adoc[`is_always_equal`] | Whether all instances of the allocator type compare equal. | xref:bsl/allocator_traits-0ae/pointer.adoc[`pointer`] | The allocator's pointer type. | xref:bsl/allocator_traits-0ae/propagate_on_container_copy_assignment.adoc[`propagate_on_container_copy_assignment`] | How the allocator is propagated on copy assignment | xref:bsl/allocator_traits-0ae/propagate_on_container_move_assignment.adoc[`propagate_on_container_move_assignment`] | How the allocator is propagated on move assignment | xref:bsl/allocator_traits-0ae/propagate_on_container_swap.adoc[`propagate_on_container_swap`] | How the allocator is propagated on swap | xref:bsl/allocator_traits-0ae/rebind_alloc.adoc[`rebind_alloc`] | | xref:bsl/allocator_traits-0ae/rebind_traits.adoc[`rebind_traits`] | | xref:bsl/allocator_traits-0ae/size_type.adoc[`size_type`] | The allocator's size type | xref:bsl/allocator_traits-0ae/value_type.adoc[`value_type`] | The allocated type | xref:bsl/allocator_traits-0ae/void_pointer.adoc[`void_pointer`] | The allocator's void pointer type. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:bsl/allocator_traits-0ae/allocate-02.adoc[`allocate`] | Allocate memory. | xref:bsl/allocator_traits-0ae/construct.adoc[`construct`] | Construct an object of type `_Tp` | xref:bsl/allocator_traits-0ae/deallocate.adoc[`deallocate`] | Deallocate memory. | xref:bsl/allocator_traits-0ae/destroy.adoc[`destroy`] | Destroy an object of type __Tp_ | xref:bsl/allocator_traits-0ae/max_size.adoc[`max_size`] | The maximum supported allocation size | xref:bsl/allocator_traits-0ae/select_on_container_copy_construction.adoc[`select_on_container_copy_construction`] | Obtain an allocator to use when copying a container. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#