[#BloombergLP-bdlc-PackedIntArrayImp-02-reserveCapacity-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-02.adoc[PackedIntArrayImp<PackedIntArrayImp_Unsigned>]::reserveCapacity :relfileprefix: ../../../ :mrdocs: 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`. == Synopsis Declared in `<bdlc_packedintarray.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void reserveCapacity( std::size_t numElements, xref:BloombergLP/bdlc/PackedIntArrayImp-02/ElementType.adoc[ElementType] maxValue); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#