|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Defined in header <memory> | ||
constexprvoid swap( indirect& lhs, indirect& rhs) noexcept(noexcept(lhs.swap(rhs))); | (since C++26) | |
Overloads thestd::swap algorithm forstd::indirect. Exchanges the state oflhs with that ofrhs. Effectively callslhs.swap(rhs).
| lhs, rhs | - | indirect objects whose states to swap |
| This section is incomplete Reason: no example |
| exchanges the contents (public member function)[edit] |