Increase the capacity to at least a certain amount.
void reserve( std::size_t new_capacity);
This increases the
to a value that is greater than or equal to
new memory is allocated. Otherwise, the call has no effect. The number
of elements and therefore the
of the container is not changed.
If new memory is allocated, all iterators including any past-the-end iterators, and all references to the elements are invalidated. Otherwise, no iterators or references are invalidated.
Constant or average case linear in
worst case quadratic.
Strong guarantee. Calls to
The new minimum capacity.