std::experimental::ranges::tagged<Base,Tags...>::swap
来自 cppreference.cn
< cpp | experimental | ranges | utility/tagged
constexpr void swap( tagged& rhs ) noexcept(/* see below */) requires Swappable<Base>; |
||
交换 *this 和 rhs 的内容,如同通过 ranges::swap(static_cast<Base&>(*this), static_cast<Base&>(rhs)); 一样。
[编辑] 异常
noexcept 规范:
noexcept(noexcept(ranges::swap(std::declval<Base&>(), std::declval<Base&>())))
[编辑] 参见
为 tagged 对象特化 swap(function) |