[#BloombergLP-bslma-ConstructionUtil-construct-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/ConstructionUtil.adoc[ConstructionUtil]::construct
:relfileprefix: ../../../
:mrdocs:

Create a default&hyphen;constructed object of (template parameter) `TARGET&lowbar;TYPE` at the specified `address`&period; If `allocator` is a `bslma`&hyphen;compatible allocator and `TARGET&lowbar;TYPE` supports `bslma`&hyphen;style allocation, `allocator` is passed to the default extended constructor&semi; otherwise, `allocator` is ignored&period; If the constructor throws, the memory at `address` is left in an unspecified state&period; The behavior is undefined unless `address` refers to a block that is of sufficient size and properly aligned for objects of `TARGET&lowbar;TYPE`&period;

== Synopsis

Declared in `&lt;bslma&lowbar;constructionutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TARGET&lowbar;TYPE,
    class ALLOCATOR&gt;
static
void
construct(
    TARGET&lowbar;TYPE* address,
    ALLOCATOR const& allocator);
----


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