[#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 `&lt;bdlc&lowbar;packedintarray&period;h&gt;`

Make the capacity of this array at least the specified `numElements`&period; This method has no effect if the current capacity meets or exceeds the required capacity&period;


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

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

Make the capacity of this array at least the specified `numElements`&period; The specified `maxValue` denotes the maximum element value that will be subsequently added to this array&period; After this call `numElements` having values in the range `&lsqb;0, maxValue&rsqb;` are guaranteed to not cause a reallocation&period; This method has no effect if the current capacity meets or exceeds the required capacity&period; The behavior is undefined unless `0 &lt;&equals; maxValue`&period;


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

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

Make the capacity of this array at least the specified `numElements`&period; The specified `minValue` and `maxValue` denote, respectively, the minimum and maximum elements values that will be subsequently added to this array&period; After this call `numElements` having values in the range `&lsqb;minValue, maxValue&rsqb;` are guaranteed to not cause a reallocation&period; This method has no effect if the current capacity meets or exceeds the required capacity&period; The behavior is undefined unless `minValue &lt;&equals; maxValue`&period;


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

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


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