[#bsl-allocator-0a-2constructor-017]
= xref:bsl.adoc[bsl]::xref:bsl/allocator-0a.adoc[allocator&lt;void&gt;]::allocator
:relfileprefix: ../../
:mrdocs:

Create an allocator that copies `original`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
allocator(xref:bsl/allocator-0a.adoc[allocator&lt;void&gt;] const& original) noexcept = default;
----

== Description

Create a proxy object 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; Postcondition&colon; &grave; this&hyphen;&gt;mechanism() &equals;&equals; original&period;mechanism()&semi; &grave;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| allocator whose mechanism is shared
|===


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