BloombergLP::bslalg::DequePrimitives::moveFront

Move elements forward with std::memmove and update the iterators.

Synopsis

Declared in <bslalg_dequeprimitives.h>

static
void
moveFront(
    Iterator* destination,
    Iterator* source,
    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

NameDescription
destinationdestination iterator; updated to *destination + numElements
sourcesource iterator; updated to *source + numElements
numElementsnumber of elements to move