BloombergLP::bdlc::Queue::setLength

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

Synopsis

Declared in <bdlc_queue.h>

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

Description

Same as the preceding overload, initializing any new elements to the specified initialValue.

Parameters

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