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

Specifier for the initial internal capacity of a `Queue`&period;

== Synopsis

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

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

== Description

Enable uniform use of an optional integral constructor argument to specify the initial internal capacity (in elements)&period; For example, &grave; Queue&lt;unsigned int&gt; x(Queue&colon;&colon;InitialCapacity(8))&semi; &grave; instantiates an object `x` with an initial capacity of 8 elements, but with a logical length of 0 elements&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlc/Queue/InitialCapacity/2constructor.adoc[`InitialCapacity`]         [.small]#[constructor]#
| Create an initial&hyphen;capacity specifier holding the specified `i`&period;
| xref:BloombergLP/bdlc/Queue/InitialCapacity/2destructor.adoc[`&#126;InitialCapacity`] [.small]#[destructor]#
| Destroy this object&period;
|===


== Data Members

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



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