[#BloombergLP-bdlat_ArrayFunctions-resize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlat_ArrayFunctions.adoc[bdlat_ArrayFunctions]::resize :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void resize( TYPE* array, int newSize); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#