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

`emplaceAndMoveToBackDispatch` overloads

== Synopses

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

Insert at the specified `position` a newly created `VALUE&lowbar;TYPE` object, constructed by forwarding the specified `allocator` (if required) and the specified (variable number of) `arguments` to the corresponding constructor of `VALUE&lowbar;TYPE`, and move the elements in the range `&lsqb;position &period;&period; fromEnd)&rsqb;` forward by 1 position&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 next to last argument is for removing overload ambiguities and is not used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class ALLOCATOR,
    class&period;&period;&period; Args&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/emplaceAndMoveToBackDispatch-0f.adoc[emplaceAndMoveToBackDispatch](
    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,
    ALLOCATOR allocator,
    xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;int, BSLALG&lowbar;DEQUEPRIMITIVES&lowbar;BITWISE&lowbar;COPYABLE&lowbar;TRAITS&gt;],
    Args&&&period;&period;&period; arguments);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class ALLOCATOR,
    class&period;&period;&period; Args&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/emplaceAndMoveToBackDispatch-0d.adoc[emplaceAndMoveToBackDispatch](
    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,
    ALLOCATOR allocator,
    xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;int, BSLALG&lowbar;DEQUEPRIMITIVES&lowbar;BITWISE&lowbar;MOVEABLE&lowbar;TRAITS&gt;],
    Args&&&period;&period;&period; arguments);
----

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class ALLOCATOR,
    class&period;&period;&period; Args&gt;
static
void
xref:BloombergLP/bslalg/DequePrimitives-01/emplaceAndMoveToBackDispatch-03.adoc[emplaceAndMoveToBackDispatch](
    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,
    ALLOCATOR allocator,
    xref:bsl/integral_constant-02.adoc[bsl::integral&lowbar;constant&lt;int, BSLALG&lowbar;DEQUEPRIMITIVES&lowbar;NIL&lowbar;TRAITS&gt;],
    Args&&&period;&period;&period; arguments);
----

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


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