[#BloombergLP-bslalg-DequePrimitives-01-moveInsertAndMoveToBack-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/DequePrimitives-01.adoc[DequePrimitives]::moveInsertAndMoveToBack
:relfileprefix: ../../../
:mrdocs:

Insert the specified move&hyphen;insertable `value` at the specified `position` by moving the elements in the range `&lsqb;position &period;&period; fromEnd)&rsqb;` forward by 1 position&semi; pass the specified `allocator` to the move constructor if appropriate&period; Load into the specified `toEnd` an iterator one past the inserted element (i&period;e&period;, `fromEnd &plus; 1`)&period; The behavior is undefined unless `fromEnd &plus; 1` is a valid iterator (i&period;e&period;, the block pointer array holds enough room after the `fromEnd` position to insert 1 element)&period; Note that the last argument is for removing overload ambiguities and is not used&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
moveInsertAndMoveToBack(
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* toEnd,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] fromEnd,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] position,
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;VALUE&lowbar;TYPE&gt;] value,
    ALLOCATOR allocator,
    xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;int, BSLALG&lowbar;DEQUEPRIMITIVES&lowbar;BITWISE&lowbar;COPYABLE&lowbar;TRAITS&gt;]);
----


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