[#BloombergLP-bdlc-PackedIntArray-0b-reserveCapacity-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::reserveCapacity
:relfileprefix: ../../../
:mrdocs:

Make the capacity of this array at least `numElements`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
reserveCapacity(std::size&lowbar;t numElements);
----

== Description

This method has no effect if the current capacity meets or exceeds the required capacity&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numElements*
| minimum number of elements to reserve for
|===


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