Template:cpp/container/swap

Exchanges the contents of the container with those of. Does not invoke any move, copy, or swap operations on individual elements.

Return value
(none)

Complexity
Constant.

Example
{{#switch:{{{1|}}}
 * vector=

Defect reports
}}