std::genera...tial_suspend(3)

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

πŸ’– 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