libcoro  1.0
Coroutine support library for C++20
Namespaces | Macros | Variables
common.h File Reference
#include <coroutine>
#include <atomic>
#include <concepts>
#include <bit>
+ Include dependency graph for common.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 coro
 main namespace
 

Macros

#define CORO_OPT_BARRIER
 marks function which servers as barrier between suspended coroutine and normal code More...
 

Variables

template<typename T >
concept coro::await_suspend_valid_return_value = (std::is_void_v<T>||std::is_convertible_v<T, bool>||std::is_convertible_v<T, std::coroutine_handle<> >)
 Tests, whether T is valid await_suspend return value. More...
 
template<typename T >
concept coro::awaitable = directly_awaitable<T> || indirectly_awaitable<T>
 Tests, whether T is coroutine awaitable. More...