[#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;`

Move&hyphen;insert a value, shifting existing elements toward the front&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;_]#

Move&hyphen;insert a value toward the front (bitwise&hyphen;copyable)&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;] traits);
----

[.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;] traits);
----

[.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;] traits);
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *toBegin*
| loads the beginning iterator after insertion
| *fromBegin*
| current beginning of the deque
| *position*
| insertion position within the deque
| *value*
| move&hyphen;insertable value to place at `position`
| *allocator*
| allocator passed to the move constructor
| *traits*
| unused trait tag for overload resolution
|===


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