Set the size to the specified newSize. 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.