BloombergLP::bdlc::PackedIntArray::reserveCapacity

reserveCapacity overloads

Synopses

Declared in <bdlc_packedintarray.h>

Make the capacity of this array at least numElements.

void
reserveCapacity(std::size_t numElements);
» more...

Reserve capacity for numElements with values up to maxValue.

void
reserveCapacity(
    std::size_t numElements,
    TYPE maxValue);
» more...

Reserve capacity for numElements in [minValue, maxValue].

void
reserveCapacity(
    std::size_t numElements,
    TYPE minValue,
    TYPE maxValue);
» more...

Parameters

NameDescription
numElementsminimum number of elements to reserve for
maxValuemaximum element value expected after this call
minValueminimum element value expected after this call