BloombergLP::bdlcc::Deque::Deque

Create an empty container with the specified highWaterMark.

Synopsis

Declared in <bdlcc_deque.h>

explicit
Deque(
    std::size_t highWaterMark,
    bslma::Allocator* basicAllocator = 0);

Description

Create a container of objects of (template parameter) TYPE, with the specified highWaterMark. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless highWaterMark > 0. The realtime clock type is used for timed operations.

Parameters

NameDescription
highWaterMarkmaximum number of items before pushes block
basicAllocatorallocator used to supply memory