BloombergLP::bslalg::DequePrimitives_ExternalDequeElementGuard::DequePrimitives_ExternalDequeElementGuard

Create a guard for the specified external deque element range.

Synopsis

Declared in <bslalg_dequeprimitives.h>

DequePrimitives_ExternalDequeElementGuard(
    Iterator* begin,
    Iterator* 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
beginpointer to the beginning iterator of the guarded range
endpointer to the end iterator of the guarded range
allocatorallocator used to destroy guarded elements