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

Same as the related overload above for `insertAndMoveToFront`&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
insertAndMoveToFront(
    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/bslalg/DequePrimitives-01/size_type.adoc[size&lowbar;type] numElements,
    VALUE&lowbar;TYPE const& value,
    ALLOCATOR allocator,
    xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;int, BSLALG&lowbar;DEQUEPRIMITIVES&lowbar;NIL&lowbar;TRAITS&gt;]);
----


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