std::experimental::ranges::tagged<Base,Tags...>::swap
From cppreference.com
< cpp | experimental | ranges | utility/tagged
| constexpr void swap( tagged& rhs ) noexcept(/* 詳細は下記 */) 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 の特殊化(関数) |