[#BloombergLP-bdlc-Queue-setLengthRaw] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::setLengthRaw :relfileprefix: ../../../ :mrdocs: Set the length of this queue to the specified `newLength`. If `newLength` is less than the current length, elements at index positions at or above `newLength` are removed. If `newLength` is equal to the current length, this function has no effect. Otherwise new elements at or above the current length are not initialized to any value. == Synopsis Declared in `<bdlc_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setLengthRaw(int newLength); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#