[#BloombergLP-bslalg-ScalarPrimitives-defaultConstruct-015]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ScalarPrimitives.adoc[ScalarPrimitives]::defaultConstruct
:relfileprefix: ../../../
:mrdocs:

`defaultConstruct` overloads

== Synopses

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

Default&hyphen;construct a `TARGET&lowbar;TYPE` at the specified `address`&period;


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

[.small]#xref:BloombergLP/bslalg/ScalarPrimitives/defaultConstruct-012.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload, ignoring `allocator`&period;


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

[.small]#xref:BloombergLP/bslalg/ScalarPrimitives/defaultConstruct-02.adoc[_» more&period;&period;&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]#
