std::stop_s...top_possible(3)

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

hey bestie!! welcome to the std::stop_source::stop_possible(3) page from the C++ Standard Libary manual β€” the header title is literally std::stop_s...top_possible(3), so yes, we’re doing the truncated-name thing today βœ¨πŸ’–

🌸 NAME 🌸

std::stop_source::stop_possible β€” and one more time for the people in the back: std::stop_source::stop_possible. That’s the whole NAME, bestie. Slay.

✨ Synopsis ✨

[[nodiscard]] bool stop_possible() const noexcept;  (since C++20)

So this is the stop_possible() member function, it’s [[nodiscard]], it’s const, it’s noexcept, and it’s been around since C++20. The signature is giving β€œshort, sweet, and absolutely not here to play.” πŸŽ€

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters. Not a single one. Nothing to pass. The parameter list is empty and living its best life πŸ’…

πŸ”₯ Return value πŸ”₯

  • Returns true if the stop_source object has a stop-state.
  • Otherwise returns false.

That’s it. Boolean behavior. No cap.

πŸ’… Notes πŸ’…

If the stop_source object has a stop-state and a stop request has already been made, this function still returns true.

So yeah β€” even after a stop request has already been made, stop_possible() stays like β€œyup, still possible.” Not me being surprised, that’s just the documented behavior, bestie 🫢

πŸ¦‹ Example πŸ¦‹

This section is incomplete.

Reason: no example.

😭 The example section is literally incomplete. There is no example. We are in our no-example era. That’s the whole note β€” no invented code, no fake demo, just the documented incompleteness.

πŸ“ Category: πŸ“

  • * Todo no example

Okay bye bestie β€” source: http://cppreference.com, version/date: 2024.06.10, page: std::stop_s...top_possible(3) πŸ’–πŸŒˆ

πŸ“¦ where this page comes from