std::experi...nction::swap(3)
π 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 ifthis->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
- 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