std::function::swap(3)
π 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 twostd::move_only_functionobjects; 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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms