[#BloombergLP-bdlc-Queue-setLength-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::setLength :relfileprefix: ../../../ :mrdocs: Same as the preceding overload, initializing any new elements to the specified `initialValue`. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setLength( int newLength, T const& initialValue); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#