BloombergLP::bdlcc::Deque

Thread-safe, indexable, double-ended queue of TYPE values.

Synopsis

Declared in <bdlcc_deque.h>

template<class TYPE>
class Deque;

Description

This class provides a fully thread-safe implementation of an efficient, in-place, indexable, double-ended queue of (template parameter) TYPE values. Direct access to the underlying bsl::deque<TYPE> object is provided through the nested Proctor and ConstProctor classes. While this class is not value-semantic, the underlying bsl::deque<TYPE> class is.

Types

NameDescription
ConstProctor This class defines a proctor type that provides direct const access to the underlying bsl::deque contained in a Deque.
Proctor Proctor granting locked, direct access to the underlying bsl::deque.

Type Aliases

NameDescription
MonoDeque Underlying non-thread-safe deque type.
size_type Unsigned type used for sizes and indexes.

Member Functions

NameDescription
Deque [constructor]Constructors
~Deque [destructor]Destroy this container. The behavior is undefined unless all access or modification of the container has completed prior to the destruction of this object.
allocator Return the allocator used by this container for allocating memory.
clockType Return the system clock type used for timing timed* operations on this object (see {Supported Clock-Types} in the component documentation).
forcePushBack forcePushBack overloads
forcePushFront forcePushFront overloads
highWaterMark Return the high-water mark value for this container.
length Return the number of elements contained in this container.
popBack popBack overloads
popFront popFront overloads
pushBack pushBack overloads
pushFront pushFront overloads
removeAll removeAll overloads
timedPopBack Timed removal of the last item into *item.
timedPopFront Timed removal of the first item into *item.
timedPushBack timedPushBack overloads
timedPushFront timedPushFront overloads
tryPopBack tryPopBack overloads
tryPopFront tryPopFront overloads
tryPushBack tryPushBack overloads
tryPushFront tryPushFront overloads

Static Member Functions

NameDescription
maxSizeT Return the maximum value that can be stored in a veriable of type size_type. The high water mark defaults to having this value.