std::experimental::ranges::tagged<Base,Tags...>::swap
< cpp | experimental | ranges | utility/tagged
constexpr void swap(tagged& rhs) noexcept(/* see below */) requires ranges::Swappable<Base>; |
||
如同以 ranges::swap(static_cast<Base&>(*this), static_cast<Base&>(rhs)); 交换 *this
与 rhs
的内容。
异常
noexcept 规定:
noexcept(noexcept(ranges::swap(std::declval<Base&>(), std::declval<Base&>())))
参阅
为 tagged 对象特化 swap (函数) |