Template:cpp/container/reserve

Increase the capacity of the container to a value that's greater or equal to. If is greater than the current capacity, new storage is allocated, otherwise the method does nothing.

Return value
(none)

Exceptions

 * std if.
 * any exception thrown by (typically std)

If an exception is thrown, this function has no effect (strong exception guarantee).

Complexity
At most linear in the size of the container.