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

Create an allocator of type `allocator&lowbar;type` from the specified `&lowbar;&lowbar;a`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:bsl/_Alloc_traits/allocator_type.adoc[allocator&lowbar;type]
create&lowbar;allocator(xref:bsl/_Alloc_traits/_Orig.adoc[&lowbar;Orig] const& &lowbar;&lowbar;a);
----

== Return Value

rebound allocator of type `allocator&lowbar;type` initialized from `&lowbar;&lowbar;a`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;a*
| original allocator used to initialize the rebound allocator
|===


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