BloombergLP::bdlc::Queue::Queue

Constructors

Synopses

Declared in <bdlc_queue.h>

Create an empty in-place queue.

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

Create an in-place queue of the specified initialLength.

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

Create an empty queue with the specified initial capacity.

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

Create an in-place queue having the same value as original.

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

Create an in-place queue of initialLength copies of initialValue.

Queue(
    int initialLength,
    T const& initialValue,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a queue from the leading numElements of srcArray.

Queue(
    T const* srcArray,
    int numElements,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
basicAllocatormemory allocator; null uses the default
initialLengthinitial number of elements
numElementsinitial capacity specifier
originalqueue providing the value to copy
initialValuevalue used to initialize each element
srcArrayarray of initial values