Change the number of elements stored.
void resize( std::size_t count, value const& v);
Resizes the container to contain
capacity() < size() + count,
a reallocation occurs first, and all iterators and references are invalidated.
Any past-the-end iterators are always invalidated.
size() > count, the container is reduced to its first
size() < count, additional copies of
abs(size() - count), plus the cost of reallocation if
capacity() is less than
Strong guarantee. Calls to
The new size of the container.