[#BloombergLP-bslalg-ArrayPrimitives-destructiveMoveAndMoveInsert-07c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/ArrayPrimitives.adoc[ArrayPrimitives]::destructiveMoveAndMoveInsert :relfileprefix: ../../../ :mrdocs: Destructively move elements while move‐inserting a source range. == Synopses Declared in `<bslalg_arrayprimitives.h>` Destructively move elements while move‐inserting a source range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class ALLOCATOR> static void xref:BloombergLP/bslalg/ArrayPrimitives/destructiveMoveAndMoveInsert-0d.adoc[destructiveMoveAndMoveInsert]( bsl::allocator_traits<ALLOCATOR>::pointer toBegin, bsl::allocator_traits<ALLOCATOR>::pointer* fromEndPtr, bsl::allocator_traits<ALLOCATOR>::pointer* lastPtr, bsl::allocator_traits<ALLOCATOR>::pointer fromBegin, bsl::allocator_traits<ALLOCATOR>::pointer position, bsl::allocator_traits<ALLOCATOR>::pointer fromEnd, bsl::allocator_traits<ALLOCATOR>::pointer first, bsl::allocator_traits<ALLOCATOR>::pointer last, xref:BloombergLP/bslalg/ArrayPrimitives/size_type.adoc[size_type] numElements, ALLOCATOR allocator); ---- [.small]#xref:BloombergLP/bslalg/ArrayPrimitives/destructiveMoveAndMoveInsert-0d.adoc[_» more..._]# Destructively move elements while move‐inserting a source range. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TARGET_TYPE> static void xref:BloombergLP/bslalg/ArrayPrimitives/destructiveMoveAndMoveInsert-076.adoc[destructiveMoveAndMoveInsert]( TARGET_TYPE* toBegin, TARGET_TYPE** fromEndPtr, TARGET_TYPE** lastPtr, TARGET_TYPE* fromBegin, TARGET_TYPE* position, TARGET_TYPE* fromEnd, TARGET_TYPE* first, TARGET_TYPE* last, xref:BloombergLP/bslalg/ArrayPrimitives/size_type.adoc[size_type] numElements, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#xref:BloombergLP/bslalg/ArrayPrimitives/destructiveMoveAndMoveInsert-076.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *toBegin* | beginning of the uninitialized destination range | *fromEndPtr* | loads the end of the remaining valid source range | *lastPtr* | loads the end of the remaining valid insert range | *fromBegin* | beginning of the source range | *position* | insertion position within the source range | *fromEnd* | end of the source range (one past the last element) | *first* | beginning of the range of elements to move‐insert | *last* | end of the range of elements to move‐insert | *numElements* | number of elements to move‐insert from `[first .. last)]` | *allocator* | allocator used to supply memory if required |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#