BloombergLP::bdlc::CompactedArray::reserveCapacity

Make the capacity of this array at least the specified numElements.

Synopses

Declared in <bdlc_compactedarray.h>

Make the capacity of this array at least the specified numElements.

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

Make the capacity of this array at least the specified numElements.

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

Parameters

NameDescription
numElementsminimum element capacity to reserve
numUniqueElementsassumed maximum unique-element count