[#BloombergLP-bdlc-Queue-2constructor-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::Queue :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit Queue( xref:BloombergLP/bdlc/Queue/InitialCapacity.adoc[InitialCapacity] const& numElements, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#