std::corout...le::destroy(3)

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

✨ std::coroutine_handle::destroy ✨

okay so bestie, this is the std::corout...le::destroy(3) page from the C++ Standard Libary β€” yes, that's the manual name, spelled exactly like that. 🫢 No cap.

πŸ’– NAME πŸ’–

std::coroutine_handle::destroy β€” and yep, the name literally repeats: std::coroutine_handle::destroy. That's the whole entry. Main character energy, honestly. πŸ’…

🌸 Synopsis 🌸

There are two versions listed, and here's the exact synopsis, bestie:

Member of other specializations
void destroy() const;
(1) (since C++20)

Member of specialization
std::coroutine_handle<std::noop_coroutine_promise>
constexpr void destroy() const noexcept;
(2) (since C++20)
  1. This one destroys the coroutine state of the coroutine to which *this refers, or does nothing if the coroutine is a no-op coroutine.
  2. This one does nothing. Periodt.
⚠️ The behavior is undefined if destroying is needed and *this does not refer to a suspended coroutine. Like, actually undefined β€” not "oopsie" undefined. Be careful. 😭

πŸŽ€ Parameters πŸŽ€

(none) β€” literally zero parameters. Not a single one. ✨

πŸ¦‹ Return value πŸ¦‹

(none) β€” nada comes back. Zero return value. πŸ’€

🌈 Example 🌈

This section is incomplete Reason: no example

not a single example in sight 😭 we're just gonna sit with that.

πŸ‘‘ See also πŸ‘‘

  • operator() resumes execution of the coroutine
  • resume (public member function) (C++20)

πŸ“ Category πŸ“

  • Todo no example

mwah πŸ’‹ shoutout to the source: http://cppreference.com, version/date 2024.06.10, page std::corout...le::destroy(3). That's the sign-off, bestie. πŸ’–

πŸ“¦ where this page comes from