void resize | ( | std::size_t | new_size, |
do_not_initialize_t | |||
) |
Changes the size of the vector without initializing memory allocated for any new elements, if there are any. .
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 memory is allocated, as required, but the elements themselves are left uninitialized. |