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

