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 |
|
Create an initial‐capacity specifier holding the specified |
|
Destroy this object. |
Data Members
Name |
Description |
Initial capacity value (in elements). |
Created with MrDocs