[#BloombergLP-bslalg-ArrayPrimitives-moveConstruct-00] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ArrayPrimitives.adoc[ArrayPrimitives]::moveConstruct :relfileprefix: ../../../ :mrdocs: `moveConstruct` overloads == Synopses Declared in `<bslalg_arrayprimitives.h>` Move the elements of type `allocator_traits<ALLOCATOR>::value_type` in the range beginning at the specified `fromBegin` location and ending immediately before the specified `fromEnd` location into the uninitialized array beginning at the specified `toBegin` location, using the specified `allocator` to supply memory (if required). The elements in the input array are left in a valid but unspecified state. If a constructor throws an exception during this operation, the output array is left in an uninitialized state. The behavior is undefined unless `toBegin` refers to space sufficient to hold `fromEnd ‐ fromBegin` elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> static void xref:BloombergLP/bslalg/ArrayPrimitives/moveConstruct-05.adoc[moveConstruct]( bsl::allocator_traits<ALLOCATOR>::pointer toBegin, bsl::allocator_traits<ALLOCATOR>::pointer fromBegin, bsl::allocator_traits<ALLOCATOR>::pointer fromEnd, ALLOCATOR allocator); ---- [.small]#xref:BloombergLP/bslalg/ArrayPrimitives/moveConstruct-05.adoc[_» more..._]# Move the elements of the (template parameter) `TARGET_TYPE` starting at the specified `fromBegin` address and ending immediately before the specified `fromEnd` address into the uninitialized array of `TARGET_TYPE` beginning at the specified `toBegin` address, using the specified `allocator` to supply memory (if required). The elements in the input array are left in a valid but unspecified state. If a constructor throws an exception during this operation, the output array is left in an uninitialized state. The behavior is undefined unless `toBegin` refers to space sufficient to hold `fromEnd ‐ fromBegin` elements. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TARGET_TYPE> static void xref:BloombergLP/bslalg/ArrayPrimitives/moveConstruct-0a.adoc[moveConstruct]( TARGET_TYPE* toBegin, TARGET_TYPE* fromBegin, TARGET_TYPE* fromEnd, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#xref:BloombergLP/bslalg/ArrayPrimitives/moveConstruct-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#