D++ (DPP)  10.0.30
C++ Discord API Bot Library
coro/coro.h File Reference
#include <experimental/coroutine>
Include dependency graph for coro/coro.h:
This graph shows which files directly or indirectly include this file:

Classes

class  dpp::async< R >
 A co_await-able object handling an API call in parallel with the caller. More...
 
class  dpp::coroutine
 Base type for a coroutine, starts on co_await. More...
 
class  dpp::task
 A coroutine task. It starts immediately on construction and can be co_await-ed, making it perfect for parallel coroutines returning a value. More...
 

Namespaces

 dpp
 The main namespace for D++ functions.
 
 dpp::detail
 Implementation details for internal use only.
 
 dpp::detail::std_coroutine
 Alias for either std or std::experimental depending on compiler and library.
 

Macros

#define STDCORO_EXPERIMENTAL_HEADER
 
#define STDCORO_EXPERIMENTAL_NAMESPACE
 

Typedefs

template<typename T >
using dpp::detail::awaitable_result = decltype(co_await_resolve(std::declval< T >()).await_resume())
 Convenience alias for the result of a certain awaitable's await_resume. More...
 

Functions

decltype(auto) dpp::detail::co_await_resolve (auto &&expr)
 Mimics the compiler's behavior of using co_await. More...
 

Variables

template<typename T >
bool dpp::detail::has_await_members
 Concept to check if a type has useable await_ready(), await_suspend() and await_resume() member functions. More...
 
template<typename T >
bool dpp::detail::has_co_await_member
 Concept to check if a type has a useable operator co_await() member. More...
 
template<typename T >
bool dpp::detail::has_free_co_await
 Concept to check if a type has a useable overload of the free function operator co_await(expr) More...
 

Macro Definition Documentation

◆ STDCORO_EXPERIMENTAL_HEADER

#define STDCORO_EXPERIMENTAL_HEADER

◆ STDCORO_EXPERIMENTAL_NAMESPACE

#define STDCORO_EXPERIMENTAL_NAMESPACE