std::experimental::ranges::tagged<Base,Tags...>::swap
来自 cppreference.com
< 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));。
[edit] 异常
noexcept 规范:
noexcept(noexcept(ranges::swap(std::declval<Base&>(), std::declval<Base&>())))
[edit] 另请参阅
专门为 tagged 对象专门化 swap (function) |