BloombergLP::bdlat_ArrayFunctions::resize

Set the size of the specified modifiable array to the specified newSize. If newSize > size(array), then newSize - size(array) elements with default values are appended to array. If newSize < size(array), then the size(array) - newSize elements at the end of array are destroyed. The behavior is undefined unless 0 <= newSize.

Synopsis

Declared in <bdlat_arrayfunctions.h>

template<class TYPE>
void
resize(
    TYPE* array,
    int newSize);