Changes the size of the vector default-constructing new elements, if necessary. .
- Parameters
-
new_size | The desired size of the vector. If the value is less than the current size of the vector, the excessive elements are removed from the end of the vector. If the value is greater than the current vector size, new elements are default-constructed at the end of the vector. No copying takes place, thus the elements are not required to be copy-constructible nor copy-assignable. |
- See also
- sbo_vector_resize_set Resizes the vector setting values of any new elements via their copy-construction from a parameter value.
sbo_vector_resize_non_raii Non-RAII resize of elements, i.e. new elements are not constructed.