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

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

== Synopses

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

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-0b.adoc[reserveCapacity](std::size&lowbar;t numElements);
----

[.small]#xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-0b.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-03.adoc[reserveCapacity](
    std::size&lowbar;t numElements,
    std::size&lowbar;t numUniqueElements);
----

[.small]#xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-03.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numElements*
| minimum element capacity to reserve
| *numUniqueElements*
| assumed maximum unique&hyphen;element count
|===


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