BloombergLP::bdlc::Queue::InitialCapacity

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

NameDescription
InitialCapacity [constructor]Create an initial-capacity specifier holding the specified i.
~InitialCapacity [destructor]Destroy this object.

Data Members

NameDescription
d_i Initial capacity value (in elements).