[#bsl-allocator-0a7-2constructor-04]
= xref:bsl.adoc[bsl]::xref:bsl/allocator-0a7.adoc[allocator&lt;unsigned int&gt;]::allocator
:relfileprefix: ../../
:mrdocs:

Create an allocator sharing the same mechanism object as the specified `original`&period; The newly constructed allocator will compare equal to `original`, even though they may be instantiated on different types&period; Postconditions&colon; &grave; &ast;this &equals;&equals; original this&hyphen;&gt;mechanism() &equals;&equals; original&period;mechanism() &grave;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ANY&lowbar;TYPE&gt;
allocator(xref:bsl/allocator-0df.adoc[allocator&lt;ANY&lowbar;TYPE&gt;] const& original) noexcept;
----


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