[tuple.special] (original) (raw)
22 General utilities library [utilities]
22.4 Tuples [tuple]
22.4.12 Tuple specialized algorithms [tuple.special]
template<class... Types> constexpr void swap(tuple<Types...>& x, tuple<Types...>& y) noexcept(_see below_);template<class... Types> constexpr void swap(const tuple<Types...>& x, const tuple<Types...>& y) noexcept(_see below_);
Constraints:
- For the first overload,(is_swappable_v<Types> && ...) is true.
- For the second overload,(is_swappable_v<const Types> && ...) is true.
Effects: As if by x.swap(y).
Remarks: The exception specification is equivalent to:noexcept(x.swap(y))