Proctor that destroys a guarded range of deque elements on destruction.
Synopsis
Declared in <bslalg_dequeprimitives.h>
template<
class VALUE_TYPE,
int BLOCK_LENGTH,
class ALLOCATOR>
class DequePrimitives_DequeElementGuard;
Description
This class provides a specialized proctor object that, upon destruction and unless the release method has been called, destroys the elements in a segment of a deque of parameterized VALUE_TYPE. The elements destroyed are delimited by the "guarded" range [d_begin .. d_end)].
Type Aliases
Name |
Description |
Iterator type over elements in the guarded deque segment. |
Member Functions
Name |
Description |
|
Create a guard for the specified initialized deque element range. |
|
Destroy the guarded elements and this guard. |
Move the begin iterator by the specified |
|
Move the end iterator by the specified |
|
Set the range of elements guarded by this object to be empty. Note that |
Created with MrDocs