[#BloombergLP-bdlcc-ObjectPool_GeneralProxy-2constructor-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectPool_GeneralProxy.adoc[ObjectPool&lowbar;GeneralProxy]::ObjectPool&lowbar;GeneralProxy
:relfileprefix: ../../../
:mrdocs:

Create a proxy holding a copy of the specified `other` object&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;objectpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ObjectPool&lowbar;GeneralProxy(
    TYPE const& other,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

== Description

Create a new proxy and a new object constructed from the specified `other` object&period; If `TYPE` declares the &quot;Uses Allocator&quot; trait, the specified `basicAllocator` is supplied to its copy constructor&semi; otherwise `basicAllocator` is ignored&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| object used to copy&hyphen;construct the proxied value
| *basicAllocator*
| allocator optionally supplied to `TYPE`
|===


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