BloombergLP::bdlc::PackedIntArrayImp::reserveCapacity

reserveCapacity overloads

Synopses

Declared in <bdlc_packedintarray.h>

Reserve capacity for at least numElements elements.

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

Reserve capacity for numElements with values up to maxValue.

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

Reserve capacity for numElements in [minValue, maxValue].

void
reserveCapacity(
    std::size_t numElements,
    ElementType minValue,
    ElementType 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