BloombergLP::bdlc::Queue::setLengthRaw

Set the length of this queue without initializing new elements.

Synopsis

Declared in <bdlc_queue.h>

void
setLengthRaw(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. 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.

Parameters

NameDescription
newLengthdesired length of this queue