BloombergLP::bdlcc::Queue::Queue

Constructors

Synopses

Declared in <bdlcc_queue.h>

Create an empty queue of objects of parameterized TYPE.

explicit
Queue(bslma::Allocator* basicAllocator = 0);
» more...

Create a queue with the specified highWaterMark capacity limit.

explicit
Queue(
    int highWaterMark,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a queue with sufficient initial capacity for numItems.

explicit
Queue(
    InitialCapacity const& numItems,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a queue containing the values from the specified srcQueue.

Queue(
    bdlc::Queue<TYPE> const& srcQueue,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a queue with initial capacity and a high-water mark.

Queue(
    InitialCapacity const& numItems,
    int highWaterMark,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a queue from srcQueue with the specified high-water mark.

Queue(
    bdlc::Queue<TYPE> const& srcQueue,
    int highWaterMark,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatorallocator used to supply memory
highWaterMarksuggested maximum length, or negative for none
numItemsinitial capacity (in items)
srcQueuequeue whose values are copied into this queue