[#BloombergLP-bdlcc-ObjectPool_DefaultProxy-2constructor-040]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/ObjectPool_DefaultProxy.adoc[ObjectPool&lowbar;DefaultProxy]::ObjectPool&lowbar;DefaultProxy
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a new proxy for a function object which invokes the default constructor of TYPE&period; Use the specified `basicAllocator` to supply memory&period;


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

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

Create a proxy for a newly created function object constructed from the specified `rhs` creator&period; Use the specified `basicAllocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlcc/ObjectPool_DefaultProxy/2constructor-047.adoc[ObjectPool&lowbar;DefaultProxy](
    xref:BloombergLP/bdlcc/ObjectPool_DefaultProxy.adoc[Creator] const& rhs,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *basicAllocator*
| allocator used to supply memory
| *rhs*
| creator used to initialize the proxied function object
|===


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