Create an in‐place queue with sufficient initial capacity to accommodate up to the specified numElements values without subsequent reallocation. A valid reference returned by the operator[] method is guaranteed to remain valid unless the value returned by the length method exceeds numElements (which would potentially cause a reallocation). Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless 0 <= numElements.

Synopsis

Declared in <bdlc_queue.h>

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

Created with MrDocs