A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/language/../header/../coroutine/suspend_never.html below:

std::suspend_never - cppreference.com

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.

[edit] Member functions indicates that an await expression never suspends
(public member function) no-op
(public member function) no-op
(public member function) std::suspend_never::await_ready

constexpr bool await_ready() const noexcept { return true; }

Always returns true, indicating that an await expression never suspends.

std::suspend_never::await_suspend

Does nothing.

std::suspend_never::await_resume

constexpr void await_resume() const noexcept {}

Does nothing. An await expression does not produce a value if suspend_never is used.

[edit] Example [edit] See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4