Sets the number of elements in the container to newSize. If newSize is greater than length, the added elements are added to unspecified positions in the container and initialized with .init.
Complexity: O(abs(n - newLength))
Postcondition: _length == newLength
See Implementation
Sets the number of elements in the container to newSize. If newSize is greater than length, the added elements are added to unspecified positions in the container and initialized with .init.
Complexity: O(abs(n - newLength))
Postcondition: _length == newLength