std::suspend_never(3)
β¨ std::suspend_never β¨
okay bestie, this is the C++ Standard Libary manual page for std::suspend_never β yes, manual name folded in right at the top, exactly as requested π
.
π NAME π
std::suspend_never - std::suspend_never
The NAME section is literally that exact pair, no extra garnish needed. iconic π
π Synopsis π
Defined in header <coroutine>
struct suspend_never;
(since C++20)
suspend_never is an empty class which can be used to indicate that an await expression never suspends and does not produce a value.
π§ Member functions π§
await_readyβ indicates that an await expression never suspends (C++20) (public member function)await_suspendβ no-op (C++20) (public member function)await_resumeβ no-op (C++20) (public member function)
std::suspend_never::await_ready
constexpr bool await_ready() const noexcept { return true; }
(since C++20)
Always returns true, indicating that an await expression never suspends.
std::suspend_never::await_suspend
constexpr void await_suspend( std::coroutine_handle<> ) const noexcept {}
(since C++20)
Does nothing.
std::suspend_never::await_resume
constexpr void await_resume() const noexcept {}
(since C++20)
Does nothing. An await expression does not produce a value if suspend_never is used.
π¦ Example π¦
This section is incomplete.
Reason: no example.
π See also π
suspend_always indicates that an await-expression should always suspend (C++20) (class)
π Category: π
- Todo no example
mwah π source: http://cppreference.com Β· version/date: 2024.06.10 Β· page: std::suspend_never(3) β byeee 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