|
|
| 在标头 <memory> 定义
|
||
constexpr void swap( indirect& lhs, indirect& rhs )
noexcept(noexcept(lhs.swap(rhs)));
|
(C++26 起) | |
对 std::indirect 重载 std::swap 算法。交换 lhs 与 rhs 的状态。相当于调用 lhs.swap(rhs)。
| lhs, rhs | - | 要交换状态的 indirect 对象
|
| 本节未完成 原因:暂无示例 |
| 交换内容 (公开成员函数) [编辑] |