[#BloombergLP-bdlcc-Queue-InitialCapacity]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Queue.adoc[Queue]::InitialCapacity
:relfileprefix: ../../../
:mrdocs:

Enable uniform use of an optional integral constructor argument to specify the initial internal capacity (in items)&period; For example, &grave; const Queue&lt;int&gt;&colon;&colon;InitialCapacity NUM&lowbar;ITEMS(8))&semi; Queue&lt;int&gt; x(NUM&lowbar;ITEMS)&semi; &grave; defines an instance `x` with an initial capacity of 8 items, but with a logical length of 0 items&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;queue&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct InitialCapacity;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/Queue/InitialCapacity/2constructor.adoc[`InitialCapacity`]         [.small]#[constructor]#
| Create an object with the specified value `i`&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlcc/Queue/InitialCapacity/d_i.adoc[`d&lowbar;i`] 
| Initial capacity value (in items)&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
