reserveCapacity overloads
Synopses
Declared in <bdlc_packedintarray.h>
Make the capacity of this array at least the specified numElements. This method has no effect if the current capacity meets or exceeds the required capacity.
void
reserveCapacity(std::size_t numElements);
Make the capacity of this array at least the specified numElements. The specified maxValue denotes the maximum element value that will be subsequently added to this array. After this call numElements having values in the range [0, maxValue] are guaranteed to not cause a reallocation. This method has no effect if the current capacity meets or exceeds the required capacity. The behavior is undefined unless 0 <= maxValue.
void
reserveCapacity(
std::size_t numElements,
int maxValue);
Make the capacity of this array at least the specified numElements. The specified minValue and maxValue denote, respectively, the minimum and maximum elements values that will be subsequently added to this array. After this call numElements having values in the range [minValue, maxValue] are guaranteed to not cause a reallocation. This method has no effect if the current capacity meets or exceeds the required capacity. The behavior is undefined unless minValue <= maxValue.
void
reserveCapacity(
std::size_t numElements,
int minValue,
int maxValue);
Created with MrDocs