22 General utilities library [utilities]

22.4 Tuples [tuple]

22.4.4 Class template tuple [tuple.tuple]

22.4.4.4 swap [tuple.swap]

constexpr void swap(tuple& rhs) noexcept(see below); constexpr void swap(const tuple& rhs) const noexcept(see below);
Mandates:
  • For the first overload, (is_swappable_v<Types> && ..) is true.
  • For the second overload, (is_swappable_v<const Types> && ..) is true.
Remarks: The exception specification is equivalent to
  • (is_nothrow_swappable_v<Types> && ..) for the first overload and
  • (is_nothrow_swappable_v<const Types> && ..) for the second overload.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant