std::move_o...nction::swap(3)

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

πŸ’… std::move_only_function::swap πŸ’…

okay bestie, welcome to the C++ Standard Libary manual page for std::move_only_function::swap β€” yes, that’s the manual name up top, and we’re keeping it cute and exact πŸ™ˆπŸ’–

✨ NAME ✨

std::move_only_function::swap β€” std::move_only_function::swap

πŸ’« Synopsis πŸ’«

void swap( move_only_function& other ) noexcept;  (since C++23)

Exchanges the stored callable objects of *this and other. literally swapping the stored callables, no cap πŸ’…βœ¨

πŸŽ€ Parameters πŸŽ€

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

πŸ¦‹ Return value πŸ¦‹

(none) β€” no return value, it just does the swap and leaves 🌸

πŸ”₯ See also πŸ”₯

  • swap β€” swaps the contents (public member function of std::function<R(Args...)>) πŸ‘‘

source: http://cppreference.com β€’ version/date: 2024.06.10 β€’ page: std::move_o...nction::swap(3) πŸ«ΆπŸ’–βœ¨

πŸ“¦ where this page comes from