[#BloombergLP-bdlc-PackedIntArray-0b-reserveCapacity-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray]::reserveCapacity :relfileprefix: ../../../ :mrdocs: `reserveCapacity` overloads == Synopses Declared in `<bdlc_packedintarray.h>` Make the capacity of this array at least the specified `numElements`. This method has no effect if the current capacity meets or exceeds the required capacity. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/PackedIntArray-0b/reserveCapacity-04.adoc[reserveCapacity](std::size_t numElements); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/reserveCapacity-04.adoc[_» more..._]# Make the capacity of this array at least the specified `numElements`. The specified `maxValue` denotes the maximum element value that will be subsequently added to this array. After this call `numElements` having values in the range `[0, maxValue]` are guaranteed to not cause a reallocation. This method has no effect if the current capacity meets or exceeds the required capacity. The behavior is undefined unless `0 <= maxValue`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/PackedIntArray-0b/reserveCapacity-0e.adoc[reserveCapacity]( std::size_t numElements, TYPE maxValue); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/reserveCapacity-0e.adoc[_» more..._]# Make the capacity of this array at least the specified `numElements`. The specified `minValue` and `maxValue` denote, respectively, the minimum and maximum elements values that will be subsequently added to this array. After this call `numElements` having values in the range `[minValue, maxValue]` are guaranteed to not cause a reallocation. This method has no effect if the current capacity meets or exceeds the required capacity. The behavior is undefined unless `minValue <= maxValue`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/PackedIntArray-0b/reserveCapacity-0f.adoc[reserveCapacity]( std::size_t numElements, TYPE minValue, TYPE maxValue); ---- [.small]#xref:BloombergLP/bdlc/PackedIntArray-0b/reserveCapacity-0f.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#