[#BloombergLP-bslalg-ConstructorProxy_PolymorphicAllocator-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ConstructorProxy_PolymorphicAllocator.adoc[ConstructorProxy&lowbar;PolymorphicAllocator]::ConstructorProxy&lowbar;PolymorphicAllocator
:relfileprefix: ../../../
:mrdocs:

Create an allocator using the same `memory&lowbar;resource` as the specified `other` allocator&period;

== Synopsis

Declared in `&lt;bslalg&lowbar;constructorproxy&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class T2&gt;
ConstructorProxy&lowbar;PolymorphicAllocator(xref:bsl/polymorphic_allocator.adoc[bsl::polymorphic&lowbar;allocator&lt;T2&gt;] const& other);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| allocator whose memory resource is adopted
|===


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