Create a queue with sufficient initial capacity for numItems.
Declared in <bdlcc_queue.h>
explicit
Queue(
InitialCapacity const& numItems,
bslma::Allocator* basicAllocator = 0);
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.
| Name | Description |
|---|---|
| numItems | initial capacity (in items) |
| basicAllocator | allocator used to supply memory |