std::swap(std::indirect)
Defined in header <memory> | ||
|---|---|---|
constexpr void swap( indirect& lhs, indirect& rhs )
noexcept(noexcept(lhs.swap(rhs)));
| (since C++26) |
Overloads the std::swap algorithm for std::indirect. Exchanges the state of lhs with that of rhs. Effectively calls lhs.swap(rhs).
Parameters
| lhs, rhs | - |
indirect objects whose states to swap |
Example
See also
| exchanges the contents (public member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/cpp/memory/indirect/swap2