Set the size to the specified newSize.
Synopsis
Declared in <bdlar_arrayref.h>
void
resize(int newSize) const;
Description
If newSize > size(), then newSize ‐ size() elements with default values are appended to the array. If newSize < size(), then the size() ‐ newSize elements at the end of the array are destroyed. The behavior is undefined unless 0 <= newSize.
Parameters
Name |
Description |
newSize |
desired number of elements |
Created with MrDocs