[#BloombergLP-bdlc-Queue-InitialCapacity] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/Queue.adoc[Queue]::InitialCapacity :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct InitialCapacity; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlc/Queue/InitialCapacity/2constructor.adoc[`InitialCapacity`] [.small]#[constructor]# | Create an initial‐capacity specifier holding the specified `i`. | xref:BloombergLP/bdlc/Queue/InitialCapacity/2destructor.adoc[`~InitialCapacity`] [.small]#[destructor]# | Destroy this object. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlc/Queue/InitialCapacity/d_i.adoc[`d_i`] | Initial capacity value (in elements). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#