std::stop_s...stop_source(3)

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

πŸŽ€ NAME πŸŽ€

std::stop_source::~stop_source β€” bestie, it's the destructor for std::stop_source, and honestly? It's giving "clean up your room before you leave" energy πŸ’…

Oh and hey, quick vibe check: this page lives in the C++ Standard Library, so you already know it's the real deal ✨


πŸ’… Synopsis πŸ’…

~stop_source();  // (since C++20)

Okay so real talk about what this icon actually does: it destroys the stop_source object 🫢 Like, that's the whole job. Poof, it's gone, lights out, no notes. πŸ’€

But wait, there's more (obviously πŸ‘‘): if *this has associated stop-state, it releases ownership of it. That's it β€” it just lets go. No dramatic exit, no strings attached, just releasing ownership like a mature main character 🌸

no cap, that's literally the entire destructor. Two jobs, both done flawlessly, and then it exits stage left πŸ¦‹

that's the whole page, bestie β€” go forth and let your stop_source objects die with dignity πŸ§šπŸ’–

page brought to you by cppreference.com, dated 2024.06.10 β€” mwah, xx πŸ’œ

πŸ“¦ where this page comes from