cpp/string/basic string/swap

Exchanges the contents of the string with those of. All iterators and references may be invalidated.

Return value
(none)

Complexity
Constant.

Exceptions
No exception is thrown.