[#bsl-_Alloc_traits]
= xref:bsl.adoc[bsl]::&lowbar;Alloc&lowbar;traits
:relfileprefix: ../
:mrdocs:

Traits for rebinding STLPort allocators to a different value type&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;alloc&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class &lowbar;Tp,
    class &lowbar;Allocator&gt;
struct &lowbar;Alloc&lowbar;traits;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:bsl/_Alloc_traits/_Orig.adoc[`&lowbar;Orig`] 
| Original allocator type supplied to this traits class&period;
| xref:bsl/_Alloc_traits/_Rebind_type.adoc[`&lowbar;Rebind&lowbar;type`] 
| Rebound allocator type for objects of type `&lowbar;Tp`&period;
| xref:bsl/_Alloc_traits/allocator_type.adoc[`allocator&lowbar;type`] 
| Allocator type used by containers rebound to `&lowbar;Tp`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/_Alloc_traits/create_allocator.adoc[`create&lowbar;allocator`] 
| Create an allocator of type `allocator&lowbar;type` from the specified `&lowbar;&lowbar;a`&period;
|===



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