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);

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

void
reserveCapacity(
    std::size_t numElements,
    std::size_t numUniqueElements);

Parameters

Name

Description

numElements

minimum element capacity to reserve

numUniqueElements

assumed maximum unique‐element count

Created with MrDocs