BloombergLP::bdlc::Queue::setLength

setLength overloads

Synopses

Declared in <bdlc_queue.h>

Set the length of this queue to the specified newLength.

void
setLength(int newLength);
» more...

Set the length of this queue, initializing new elements to initialValue.

void
setLength(
    int newLength,
    T const& initialValue);
» more...

Parameters

NameDescription
newLengthdesired length of this queue
initialValuevalue used to initialize new elements