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

Move elements backward with `std&colon;&colon;memmove` and update the iterators&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
moveBack(
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* destination,
    xref:BloombergLP/bslalg/DequePrimitives-01/Iterator.adoc[Iterator]* source,
    xref:BloombergLP/bslalg/DequePrimitives-01/size_type.adoc[size&lowbar;type] numElements);
----

== Description

Move the specified `numElements` from the specified `source` to the specified `destination` using `std&colon;&colon;memmove`&period; Also load into `destination` the value `destination &hyphen; numElements` and `source` the value `source &hyphen; numElements`&period; The behavior is undefined unless `destination &gt;&equals; source`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *destination*
| destination iterator&semi; updated to `&ast;destination &hyphen; numElements`
| *source*
| source iterator&semi; updated to `&ast;source &hyphen; numElements`
| *numElements*
| number of elements to move
|===


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