Showing content from https://en.cppreference.com/w/cpp/language/../string/../utility/swap.html below:
std::swap - cppreference.com
Exchanges the given values.
1) Constant.
2) Linear in N.
The expected way to make a program-defined type swappable is to provide a non-member function swap in the same namespace as the type: see Swappable for details.
specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function template) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function) [edit] specializes the std::swap algorithm
(function) [edit]
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4