Constructors

Synopses

Declared in <bdlcc_queue.h>

Create an empty queue of objects of parameterized TYPE.

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

Create a queue with the specified highWaterMark capacity limit.

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

Create a queue with sufficient initial capacity for numItems.

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

Create a queue containing the values from the specified srcQueue.

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

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

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

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

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

Parameters

Name

Description

basicAllocator

allocator used to supply memory

highWaterMark

suggested maximum length, or negative for none

numItems

initial capacity (in items)

srcQueue

queue whose values are copied into this queue

Created with MrDocs