std::genera...tial_suspend(3)
π NAME π
std::generator::promise_type::initial_suspend β std::generator::promise_type::initial_suspend. Yep, the name and the description are literally the same, and we're keeping both, periodt. This is the std::genera...tial_suspend(3) page from the C++ Standard Libary manual set, bestie. π
β¨ Synopsis β¨
Here's the exact signature, no edits, no cap:
std::suspend_always initial_suspend() const noexcept; (since C++23)
It's giving since C++23 era. And it's equivalent to { return std::suspend_always{}; }, that is, std::generator always starts lazily (in suspended state). Lazy-start queen behavior, fr fr. π¦
πΈ Parameters πΈ
(none)β literally no parameters, bestie. Nothing to pass. π
π Return value π
The return value is the awaitable object. That's the whole vibe. π
Source/version: http://cppreference.com Β· date: 2024.06.10 Β· page: std::genera...tial_suspend(3) β bye bestie, mwah! π«Άπ
π¦ 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