std::swap(std::tuple)
template< class... Types > void swap( tuple<Types...>& lhs, tuple<Types...>& rhs ) noexcept(/* see below */); | | (since C++11) |
---|
交换内容lhs
和rhs
相当于lhs.swap(rhs)
...
This function does not participate in overload resolution unless std::is_swappable<Ti>::value is true for all i from 0 to sizeof...(Types). | (since C++17) |
---|
参数
lhs, rhs | - | tuples whose contents to swap |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept(noexcept(lhs.swap(rhs)))
另见
二次
*。
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com