Coroutine support (C++20)

From cppreference.com
< cpp
 
 
Utilities library
General utilities
Date and time
Function objects
Formatting library (C++20)
(C++11)
Relational operators (deprecated in C++20)
Integer comparison functions
(C++20)(C++20)(C++20)   
(C++20)
Swap and type operations
(C++14)
(C++11)
(C++11)
(C++11)
(C++17)
Common vocabulary types
(C++11)
(C++17)
(C++17)
(C++17)
(C++11)
(C++17)
(C++23)
Elementary string conversions
(C++17)
(C++17)
 
Coroutine support
Coroutine traits
Coroutine handle
No-op coroutines
Trivial awaitables
 

The coroutine support library defines several types that provide compile and run-time support for coroutines.

Coroutine traits

Defined in header <coroutine>
trait type for discovering coroutine promise types
(class template)

Coroutine handle

Defined in header <coroutine>
used to refer to a suspended or executing coroutine
(class template)

No-op coroutines

Defined in header <coroutine>
creates a coroutine handle that has no observable effects when resumed or destroyed
(function)
used for coroutines with no observable effects
(class)
std::coroutine_handle<std::noop_coroutine_promise>, intended to refer to a no-op coroutine
(typedef)

Trivial awaitables

Defined in header <coroutine>
indicates that an await-expression should never suspend
(class)
indicates that an await-expression should always suspend
(class)