22 General utilities library [utilities]

22.6 Variants [variant]

22.6.10 Specialized algorithms [variant.specalg]

template<class. Types> constexpr void swap(variant<Types..>& v, variant<Types..>& w) noexcept(see below);
Constraints: is_move_constructible_v<
Remarks: The exception specification is equivalent to noexcept(v.swap(w)).

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