[#BloombergLP-bdlc-Queue-2constructor-04b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::Queue :relfileprefix: ../../../ :mrdocs: Create an in‐place queue of `initialLength` copies of `initialValue`. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Queue( int initialLength, T const& initialValue, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Create an in‐place queue of the specified `initialLength` with each element initialized to the specified `initialValue`. 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 <= initialLength`. == Parameters [cols="1,4"] |=== | Name| Description | *initialLength* | initial number of elements | *initialValue* | value used to initialize each element | *basicAllocator* | memory allocator; null uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#