bsl::Deque_Guard::Deque_Guard

Create a guard for uncommitted elements at one end of deque.

Synopsis

Declared in <bslstl_deque.h>

Deque_Guard(
    deque<VALUE_TYPE, ALLOCATOR>* deque,
    bool isTail);

Description

Initializes object to guard 0 items from the specified deque. This guards either the tail or the head, as determined by the specified isTail boolean.

Parameters

NameDescription
dequedeque whose uncommitted elements are guarded
isTailtrue to guard the back; false to guard the front