std::stop_source::swap(3)
π std::stop_source::swap β C++ Standard Library edition π
πΈ NAME πΈ
std::stop_source::swap β bestie, the name is literally std::stop_source::swap, and it does exactly what it says on the tin. Iconic behavior.
β¨ Synopsis β¨
void swap( std::stop_source& other ) noexcept; (since C++20)
This one has been serving since C++20, and it exchanges the stop-state of *this and other. That's the whole vibe. No cap.
C++20 and up only, bestie β that's the (since C++20) right there. Periodt.
π«Ά Parameters π«Ά
otherβ thestop_sourceyou're exchanging the contents with. Simple as that, fr fr.
π Return value π
It's giving (none). Literally no return value.
mwah π β source/version + date: http://cppreference.com Β· 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