[#BloombergLP-bslalg-ScalarPrimitives-moveConstruct-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ScalarPrimitives.adoc[ScalarPrimitives]::moveConstruct
:relfileprefix: ../../../
:mrdocs:

Build an object of the parameterized `TARGET&lowbar;TYPE` from the specified `original` object of the same `TARGET&lowbar;TYPE` in the uninitialized memory at the specified `address`, as if by using the move constructor of `TARGET&lowbar;TYPE`&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 move constructor&period; If the constructor throws, the `address` is left in an uninitialized state&period; Note that bit&hyphen;wise copy will be used if `TARGET&lowbar;TYPE` has the bit&hyphen;wise copyable trait (not the bit&hyphen;wise moveable trait, which indicates a destructive bit&hyphen;wise move)&period; In C&plus;&plus;03 mode, `moveConstruct` has the same effect as `copyConstruct`&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
moveConstruct(
    TARGET&lowbar;TYPE* address,
    TARGET&lowbar;TYPE& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator);
----


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