BloombergLP::bdlat_ArrayFunctions::bdlat_arrayReserve

Reserve capacity for the specified array to hold at least the specified numElements elements.

Synopsis

Declared in <bdlat_arrayfunctions.h>

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

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
arrayarray whose capacity is reserved
numElementsminimum capacity to reserve