Files
2025-10-25 03:02:53 +03:00

1.1 KiB

[tuple.special]

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);

1

#

Constraints:

  • (1.1)

    For the first overload,(is_swappable_v && ...) is true.

  • (1.2)

    For the second overload,(is_swappable_v && ...) is true.

2

#

Effects: As if by x.swap(y).

3

#

Remarks: The exception specification is equivalent to:noexcept(x.swap(y))