[#BloombergLP-bdlc-Queue-setLength-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::setLength :relfileprefix: ../../../ :mrdocs: Set the length of this queue, initializing new elements to `initialValue`. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setLength( int newLength, T const& initialValue); ---- == Description Same as the preceding overload, initializing any new elements to the specified `initialValue`. == Parameters [cols="1,4"] |=== | Name| Description | *newLength* | desired length of this queue | *initialValue* | value used to initialize new elements |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#