Set the length of this queue to the specified newLength.
Synopsis
Declared in <bdlc_queue.h>
void
setLength(int newLength);
Description
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. Otherwise any new elements (at or above the current length) are initialized to the specified initialValue, or to 0.0 if initialValue is not specified. The behavior is undefined unless 0 <= newLength.
Parameters
Name |
Description |
newLength |
desired length of this queue |
Created with MrDocs