std::generator::begin(3)
β¨ NAME β¨
Hii bestie π this is the std::generator::begin page from the C++ Standard Library manual, and it's giving βiterator entrance eraβ πβ¨
π Synopsis π
/*iterator*/ begin(); (since C++23)
Okay so begin() pushes coroutine_ into *active_ stack, then evaluates coroutine_.resume(). Slay π
Before you invoke begin(), coroutine_ must refer to a coroutine that is suspended at its initial suspend point. No cap. π¦
π Return value π
You get an iterator whose coroutine_ member refers to the same coroutine as coroutine_ does. Iconic. π«Ά
π Notes π
Calling begin() more than once on the same generator object is undefined behavior. Periodt. Do not do it, bestie ππ
π Example π
This section is incomplete.
Reason: no example.
π Category π
- Todo no example
xoxo, sourced from cppreference.com π version/date 2024.06.10 π page std::generator::begin(3) π
π¦ 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