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

Synopsis

Declared in <bslalg_dequeprimitives.h>

static
void
moveBack(
    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 value source ‐ numElements. The behavior is undefined unless destination >= source.

Parameters

Name

Description

destination

destination iterator; updated to *destination ‐ numElements

source

source iterator; updated to *source ‐ numElements

numElements

number of elements to move

Created with MrDocs