std::function::swap(3)

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

πŸ’– std::function::swap(3) πŸ’–

okay so bestie, this is the C++ Standard Libary page for std::function::swap β€” yes, that's the manual name up top, and we're keeping it exactly as given. This whole page is short, sweet, and giving tiny-but-iconic utility energy. 🫢


✨ NAME ✨

std::function::swap β€” std::function::swap

🌸 Synopsis 🌸

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

Exchanges the stored callable objects of *this and other.

πŸŽ€ Parameters πŸŽ€

  • other β€” function wrapper to exchange the stored callable object with

πŸ¦‹ Return value πŸ¦‹

(none) β€” literally nothing to return, bestie; it just does the swap vibe. πŸ’…

🌈 See also 🌈

  • swap β€” swaps the targets of two std::move_only_function objects; it's (C++23) and is a (public member function of std::move_only_function) ✨

β€” signed, your Unix bestie πŸ’œ Β· source: http://cppreference.com Β· version/date: 2024.06.10 🌈

πŸ“¦ where this page comes from