[#BloombergLP-bslalg-DequePrimitives-01-moveFront] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslalg.adoc[bslalg]::xref:BloombergLP/bslalg/DequePrimitives-01.adoc[DequePrimitives]::moveFront :relfileprefix: ../../../ :mrdocs: Move elements forward with `std::memmove` and update the iterators. == Synopsis Declared in `<bslalg_dequeprimitives.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void moveFront( 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_type] numElements); ---- == Description Move the specified `numElements` from the specified `source` to the specified `destination` using `std::memmove`. Also load into `destination` the value `destination + numElements` and `source` the the value `source + numElements`. The behavior is undefined unless `destination <= source`. == Parameters [cols="1,4"] |=== | Name| Description | *destination* | destination iterator; updated to `*destination + numElements` | *source* | source iterator; updated to `*source + numElements` | *numElements* | number of elements to move |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#