std::valarray::swap(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸŽ€ NAME πŸŽ€

std::valarray::swap(3) β€” literally std::valarray::swap, no notes. This page is from the C++ Standard Libary manual (that spelling is the manual's, not me, bestie πŸ’…), and it's all about swapping contents. Iconic behavior, honestly.

✨ Synopsis ✨

          void swap( valarray& other );           (until C++11)
          void swap( valarray& other ) noexcept;  (since C++11)

Swaps the contents with those of other. That's the whole move 🫢.

🌸 Parameters 🌸

  • other β€” another valarray to swap the contents with. Like, the other one in the swap, obviously πŸ’–.

πŸ’– Return value πŸ’–

None. (none). It's giving void energy β€” nothing comes back, and that's iconic ✨.


Cute sign-off: source/version is http://cppreference.com, dated 2024.06.10. Bye bestie, slay those valarray swaps πŸ’…πŸŽ€

πŸ“¦ where this page comes from