[#BloombergLP-bdlc-PackedIntArrayImp-0a-reserveCapacity-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/PackedIntArrayImp-0a.adoc[PackedIntArrayImp]::reserveCapacity
:relfileprefix: ../../../
:mrdocs:

`reserveCapacity` overloads

== Synopses

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

Reserve capacity for at least `numElements` elements&period;


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

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

Reserve capacity for `numElements` with values up to `maxValue`&period;


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

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

Reserve capacity for `numElements` in `&lsqb;minValue, maxValue&rsqb;`&period;


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

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *numElements*
| minimum number of elements to reserve for
| *maxValue*
| maximum element value expected after this call
| *minValue*
| minimum element value expected after this call
|===


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