BloombergLP::bslalg::DequePrimitives_DequeElementGuard::DequePrimitives_DequeElementGuard

Create a guard for the specified initialized deque element range.

Synopsis

Declared in <bslalg_dequeprimitives.h>

DequePrimitives_DequeElementGuard(
    Iterator const& begin,
    Iterator const& end,
    ALLOCATOR allocator);

Description

Create a deque exception guard object for the sequence of elements of the parameterized VALUE_TYPE delimited by the specified range [begin .. end)]. The behavior is undefined unless begin <= end and unless each element in the range [begin .. end)] has been initialized.

Parameters

NameDescription
beginbeginning of the guarded element range
endend of the guarded element range (one past the last)
allocatorallocator used to destroy guarded elements