[#BloombergLP-bslalg-ScalarPrimitives-construct-0f6]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ScalarPrimitives.adoc[ScalarPrimitives]::construct
:relfileprefix: ../../../
:mrdocs:

Construct a `TARGET&lowbar;TYPE` at `address`, optionally with arguments&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TARGET&lowbar;TYPE&gt;
static
void
construct(
    TARGET&lowbar;TYPE* address,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator);
----

== Description

Build an object of the parameterized `TARGET&lowbar;TYPE` in the uninitialized memory at the specified `address`&period; Use the `TARGET&lowbar;TYPE` constructor `TARGET&lowbar;TYPE(ARG1 const&amp;, &period;&period;&period;)` taking the specified `a1` up to `a14` arguments of the respective parameterized `ARG1` up to `ARG14` types&period; If the specified `allocator` is based on `bslma&colon;&colon;Allocator` and `TARGET&lowbar;TYPE` takes an allocator constructor argument, then `allocator` is passed to the `TARGET&lowbar;TYPE` constructor in the manner appropriate to the traits `bslmf&colon;&colon;UsesAllocatorArgT` and `blsma&colon;&colon;UsesBslmaAllocator`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *address*
| address of uninitialized storage
| *allocator*
| allocator to use if the type uses an allocator
|===


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