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
Name |
Description |
numItems |
initial capacity (in items) |
basicAllocator |
allocator used to supply memory |
Created with MrDocs