[#BloombergLP-bslalg-ArrayPrimitives-moveConstruct-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ArrayPrimitives.adoc[ArrayPrimitives]::moveConstruct
:relfileprefix: ../../../
:mrdocs:

Move the elements of the (template parameter) `TARGET&lowbar;TYPE` starting at the specified `fromBegin` address and ending immediately before the specified `fromEnd` address into the uninitialized array of `TARGET&lowbar;TYPE` beginning at the specified `toBegin` address, using the specified `allocator` to supply memory (if required)&period; The elements in the input array are left in a valid but unspecified state&period; If a constructor throws an exception during this operation, the output array is left in an uninitialized state&period; The behavior is undefined unless `toBegin` refers to space sufficient to hold `fromEnd &hyphen; fromBegin` elements&period;

== Synopsis

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

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


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