Files
cppdraft_translate/cppdraft/coroutine/syn.md
2025-10-25 03:02:53 +03:00

1.6 KiB

[coroutine.syn]

17 Language support library [support]

17.13 Coroutines [support.coroutine]

17.13.2 Header synopsis [coroutine.syn]

🔗

// all freestanding#include // see [compare.syn]namespace std {// [coroutine.traits], coroutine traitstemplate<class R, class... ArgTypes>struct coroutine_traits; // [coroutine.handle], coroutine handletemplatestruct coroutine_handle; // [coroutine.handle.compare], comparison operatorsconstexpr bool operator==(coroutine_handle<> x, coroutine_handle<> y) noexcept; constexpr strong_ordering operator<=>(coroutine_handle<> x, coroutine_handle<> y) noexcept; // [coroutine.handle.hash], hash supporttemplate struct hash; template struct hash<coroutine_handle

>; // [coroutine.noop], no-op coroutinesstruct noop_coroutine_promise; template<> struct coroutine_handle<noop_coroutine_promise>; using noop_coroutine_handle = coroutine_handle<noop_coroutine_promise>;

noop_coroutine_handle noop_coroutine() noexcept; // [coroutine.trivial.awaitables], trivial awaitablesstruct suspend_never; struct suspend_always;}