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

Name

Description

newLength

desired length of this queue

initialValue

value used to initialize new elements

Created with MrDocs