Luna::Vector::resize
void resize(usize n)
Resizes the vector.
Parameters
-
in n
The new size of the vector.
If n
is greater than size, n - size()
new elements will be default-inserted at the back of the vector.
If n
is smaller than size, size() - n
elements will be removed from the back of the vector.
If n
is equal to size, this function does nothing.