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

`moveInsertAndMoveToFront` overloads

== Synopses

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

Insert the specified move&hyphen;insertable `value` at the specified `position` by moving the elements in the range `&lsqb;fromBegin &period;&period; position)&rsqb;` backward by 1 position&semi; pass the specified `allocator` to the move constructor if appropriate&period; Load into the specified `toBegin` an iterator to the inserted element (i&period;e&period;, `fromBegin &hyphen; 1`)&period; The behavior is undefined unless `fromBegin &hyphen; 1` is a valid iterator (i&period;e&period;, the block pointer array holds enough room before the `fromBegin` position to insert 1 element)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-0e.adoc[moveInsertAndMoveToFront](
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* toBegin,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] fromBegin,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] position,
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;VALUE&lowbar;TYPE&gt;] value,
    ALLOCATOR allocator);
----

[.small]#xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-0e.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-0b.adoc[moveInsertAndMoveToFront](
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* toBegin,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] fromBegin,
    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]#xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-0b.adoc[_» more&period;&period;&period;_]#

Same as the related overload above for `moveInsertAndMoveToFront`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-06.adoc[moveInsertAndMoveToFront](
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* toBegin,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] fromBegin,
    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;MOVEABLE&lowbar;TRAITS&gt;]);
----

[.small]#xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-06.adoc[_» more&period;&period;&period;_]#

Same as the preceding overload&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ALLOCATOR&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-02.adoc[moveInsertAndMoveToFront](
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* toBegin,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator] fromBegin,
    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;NIL&lowbar;TRAITS&gt;]);
----

[.small]#xref:BloombergLP/bslalg/DequePrimitives-01/moveInsertAndMoveToFront-02.adoc[_» more&period;&period;&period;_]#


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