BloombergLP::bdlcc::Queue::Queue

Create a queue with sufficient initial capacity for numItems.

Synopsis

Declared in <bdlcc_queue.h>

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

Description

Create a queue of objects of parameterized TYPE with sufficient initial capacity to accommodate up to the specified numItems values without subsequent reallocation. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Parameters

NameDescription
numItemsinitial capacity (in items)
basicAllocatorallocator used to supply memory