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

Reserve capacity for at least the specified `numElements` values&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reserveCapacity(int numElements);
----

== Description

Reserve sufficient internal capacity to accommodate up to the specified `numElements` values without subsequent reallocation&period; Note that if `numElements &lt;&equals; length()`, this operation has no effect&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numElements*
| minimum capacity to reserve
|===


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