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

Constructors

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bdlcc/ObjectPool_GeneralProxy/2constructor-03.adoc[ObjectPool&lowbar;GeneralProxy](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bdlcc/ObjectPool_GeneralProxy/2constructor-03.adoc[_» more&period;&period;&period;_]#

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;


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

[.small]#xref:BloombergLP/bdlcc/ObjectPool_GeneralProxy/2constructor-0c.adoc[_» more&period;&period;&period;_]#


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