[#bsl-allocator_traits-0a5]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0108.adoc[allocator&lowbar;traits]&lt;xref:bsl/allocator-0df.adoc[allocator&lt;short&gt;]&gt;
:relfileprefix: ../
:mrdocs:

This `struct` template provides a specialization of the `allocator&lowbar;traits` class template for `bsl&colon;&colon;allocator`&period; This specialization is not strictly necessary, but its presence speeds up compliation by bypassing a significant amount of metaprogramming&period;

== Synopsis

Declared in `&lt;bslma&lowbar;bslallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&gt;
struct xref:bsl/allocator_traits-0108.adoc[allocator&lowbar;traits]&lt;xref:bsl/allocator-0df.adoc[allocator&lt;short&gt;]&gt;;
----

== Type Aliases

[cols="1"]
|===
| Name
| xref:bsl/allocator_traits-0a5/allocator_type.adoc[`allocator&lowbar;type`] 
| xref:bsl/allocator_traits-0a5/const_pointer.adoc[`const&lowbar;pointer`] 
| xref:bsl/allocator_traits-0a5/const_void_pointer.adoc[`const&lowbar;void&lowbar;pointer`] 
| xref:bsl/allocator_traits-0a5/difference_type.adoc[`difference&lowbar;type`] 
| xref:bsl/allocator_traits-0a5/is_always_equal.adoc[`is&lowbar;always&lowbar;equal`] 
| xref:bsl/allocator_traits-0a5/pointer.adoc[`pointer`] 
| xref:bsl/allocator_traits-0a5/propagate_on_container_copy_assignment.adoc[`propagate&lowbar;on&lowbar;container&lowbar;copy&lowbar;assignment`] 
| xref:bsl/allocator_traits-0a5/propagate_on_container_move_assignment.adoc[`propagate&lowbar;on&lowbar;container&lowbar;move&lowbar;assignment`] 
| xref:bsl/allocator_traits-0a5/propagate_on_container_swap.adoc[`propagate&lowbar;on&lowbar;container&lowbar;swap`] 
| xref:bsl/allocator_traits-0a5/rebind_alloc.adoc[`rebind&lowbar;alloc`] 
| xref:bsl/allocator_traits-0a5/rebind_traits.adoc[`rebind&lowbar;traits`] 
| xref:bsl/allocator_traits-0a5/size_type.adoc[`size&lowbar;type`] 
| xref:bsl/allocator_traits-0a5/value_type.adoc[`value&lowbar;type`] 
| xref:bsl/allocator_traits-0a5/void_pointer.adoc[`void&lowbar;pointer`] 
|===


== Static Member Functions

[cols="1"]
|===
| Name
| xref:bsl/allocator_traits-0a5/allocate-0c.adoc[`allocate`] 
| xref:bsl/allocator_traits-0a5/construct-00.adoc[`construct`] 
| xref:bsl/allocator_traits-0a5/deallocate.adoc[`deallocate`] 
| xref:bsl/allocator_traits-0a5/destroy.adoc[`destroy`] 
| xref:bsl/allocator_traits-0a5/max_size.adoc[`max&lowbar;size`] 
| xref:bsl/allocator_traits-0a5/select_on_container_copy_construction.adoc[`select&lowbar;on&lowbar;container&lowbar;copy&lowbar;construction`] 
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
