std::stop_source::swap(3)

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

πŸŽ€ 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 β€” the stop_source you'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