cpp/string/basic string/swap2

Specializes the std algorithm for std. Swaps the contents of and.

Equivalent to.

Return value
(none)

Complexity
Constant.

{{rrev|since=c++17|

Exceptions
}}