std::swap(std::tuple)
提供: cppreference.com
template< class... Types > void swap( tuple<Types...>& lhs, tuple<Types...>& rhs ) noexcept(/* see below */); |
(C++11以上) (C++20未満) |
|
template< class... Types > constexpr void |
(C++20以上) | |
lhs
と rhs
の内容を入れ替えます。 lhs.swap(rhs) と同等です。
この関数は、 0 から |
(C++17以上) |
目次 |
[編集] 引数
lhs, rhs | - | 内容を入れ替えるタプル |
[編集] 戻り値
(なし)
[編集] 例外
noexcept 指定:
noexcept(noexcept(lhs.swap(rhs)))