Template:cpp/container/resize

Resizes the container to contain elements, does nothing if.

If the current size is greater than, the container is reduced to its first elements.

If the current size is less than , @1@ additional default-inserted elements are appended @2@ additional copies of are appended.

Return value
(none)

Complexity
Linear in the difference between the current size and.

{{#ifeq:{{{1}}}|vector|

Exceptions
If an exception is thrown, this function has no effect (strong exception guarantee). Although not explicitly specified, std is thrown if the capacity required by the new vector would exceed max_size.

}}

Example
{{#ifeq:{{{1|}}}|forward_list||

Defect reports
}}