std::genera...ed_exception(3)
π std::generator::promise_type::unhandled_exception(3) π
okay so grab your emotional support iced coffee, bestie β this page is from the C++ Standard Library manual (the header spells it βC++ Standard Libaryβ and honestly? iconic). The header abbreviates the title as std::genera...ed_exception(3), but the full name is right below, bestie.
πΈ NAME πΈ
std::generator::promise_type::unhandled_exception β that's the whole thing. The original NAME line says it twice: std::generator::promise_type::unhandled_exception β std::generator::promise_type::unhandled_exception. Double the name, double the slay, no cap.
π Synopsis π
void unhandled_exception(); (since C++23)
Let x be some generator object.
If a handle referring to the coroutine whose promise object is *this is at the top of *active_ of x:
- If the handle referring to the coroutine whose promise object is
*thisis the only element ofx.*active_, equivalent tothrow. - Otherwise, assigns
std::current_exception()toexcept_. - Otherwise, the behavior is undefined.
π¨ bestie, that last βotherwiseβ is the danger zone: the behavior is undefined. Not mysterious, not cute β undefined.
π§Έ Parameters π§Έ
(none) β literally no parameters, she takes nothing.
π Return value π
(none) β also nothing. She's not returning a little gift, she's just doing her thing.
π₯ Exceptions π₯
May throw. That's it, that's the whole note.
π source: http://cppreference.com; date/version: 2024.06.10 β mwah, bye 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