[#BloombergLP-bslalg-ConstructorProxy-2constructor-0d3f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ConstructorProxy.adoc[ConstructorProxy]::ConstructorProxy
:relfileprefix: ../../../
:mrdocs:

Construct a proxy for a default&hyphen;constructed proxied object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
ConstructorProxy(xref:BloombergLP/bslalg/ConstructorProxy.adoc[CtorAllocArgT] const& allocator);
----

== Description

Construct a proxy, passing no arguments except possibly a specified `allocator` to the constructor of the proxied object&period; If `OBJECT&lowbar;TYPE` is allocator aware and `allocator&lowbar;type` is a compatible allocator type, pass `allocator` to the proxied object constructor&semi; otherwise ignore `allocator`&period; A compilation error will result unless `OBJECT&lowbar;TYPE` has an (extended) default constructor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *allocator*
| allocator passed to the proxied object if it is allocator&hyphen;aware&semi; ignored otherwise
|===


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