Create a guard that reverses a move unless release is called.

Synopsis

Declared in <bslalg_dequeprimitives.h>

DequePrimitives_DequeMoveGuard(
    Iterator dest,
    Iterator src,
    std::size_t size,
    bool isFront);

Description

Create a guard object that will call moveBack or moveFront, depending on the specified isFront, on the specified size elements from src to dest upon destruction unless release has been called.

Parameters

Name

Description

dest

destination iterator of the guarded move

src

source iterator of the guarded move

size

number of elements in the guarded move

isFront

true to reverse with moveFront, else moveBack

Created with MrDocs