std:: swap (std::indirect)
From cppreference.net
C++
Memory management library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::indirect
| Member functions | ||||
| Observers | ||||
| Modifiers | ||||
| Non-member functions | ||||
|
swap
(std::indirect)
|
||||
| Deduction guides | ||||
| Helper classes | ||||
|
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
|
This section is incomplete
Reason: no example |
See also
|
exchanges the contents
(public member function) |