BloombergLP::bdlat_ArrayFunctions::reserve

If successful, make the capacity of the specified modifiable array at least the specified numElements and return zero. If unsuccessful or unsupported, return a non-zero value. This method has no effect, and returns zero, if the current capacity meets or exceeds the required capacity. The behavior is undefined unless 0 <= numElements.

Synopsis

Declared in <bdlat_arrayfunctions.h>

template<class TYPE>
int
reserve(
    TYPE* array,
    int numElements);