[#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`. == Synopses Declared in `<bdlc_compactedarray.h>` Make the capacity of this array at least the specified `numElements`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-0b.adoc[reserveCapacity](std::size_t numElements); ---- [.small]#xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-0b.adoc[_» more..._]# Make the capacity of this array at least the specified `numElements`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-03.adoc[reserveCapacity]( std::size_t numElements, std::size_t numUniqueElements); ---- [.small]#xref:BloombergLP/bdlc/CompactedArray/reserveCapacity-03.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *numElements* | minimum element capacity to reserve | *numUniqueElements* | assumed maximum unique‐element count |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#