std::corout...le::destroy(3)
β¨ 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)
- This one destroys the coroutine state of the coroutine to which
*thisrefers, or does nothing if the coroutine is a no-op coroutine. - 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 coroutineresume(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
- 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