Enable uniform use of an optional integral constructor argument to specify the initial internal capacity (in elements). For example, ` Queue<unsigned int> x(Queue::InitialCapacity(8)); ` instantiates an object x with an initial capacity of 8 elements, but with a logical length of 0 elements.

Synopsis

Declared in <bdlc_queue.h>

struct InitialCapacity;

Member Functions

Name

Description

InitialCapacity [constructor]

Create an initial‐capacity specifier holding the specified i.

~InitialCapacity [destructor]

Destroy this object.

Data Members

Name

Description

d_i

Initial capacity value (in elements).

Created with MrDocs