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

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

πŸ’… NAME

okay so bestie, you're in the C++ Standard Libary manual, and this page is std::experi...nction::swap(3) β€” the std::experimental::function::swap one. The NAME line is exactly:

std::experimental::function::swap - std::experimental::function::swap


✨ Synopsis ✨

okay so the synopsis is literally:

void swap( function& other );  (library fundamentals TS)

It exchanges the stored callable objects of *this and other. slay.

The allocators of *this and other are not exchanged.

🚨 The behavior is undefined if *this->get_memory_resource() (library fundamentals TS) != *other.get_memory_resource(). β€” this is the rule until library fundamentals TS v3.
🚨 The behavior is undefined if this->get_allocator() != (library fundamentals TS v3) other.get_allocator().

πŸŽ€ Parameters

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

🌸 Return value

  • (none) β€” no return value, bestie. It's literally none. Nothing comes back. periodt.

mwah πŸ’‹ source/version: http://cppreference.com; date: 2024.06.10; page: std::experi...nction::swap(3). that's the whole page, bestie 🫢

πŸ“¦ where this page comes from