std::swap(std::tuple)
STD::交换%28 std::tuple%29
template< class... Types > void swap( tuple | | (since C++11) |
---|
交换内容lhs
和rhs
相当于lhs.swap(rhs)
...
This function does not participate in overload resolution unless std::is_swappable | (since C++17) |
---|
参数
lhs, rhs | - | tuples whose contents to swap |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept(noexcept(lhs.swap(rhs)))
另见
二次
*。
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。