template<template<std::size_t, typename...> class CallbackWrapper, template<std::size_t, typename...> class ContinuationWrapper, typename... Args>
cti::continuable_trait class

Trait to retrieve a continuable_base type with a given type-erasure backend.

Template parameters
CallbackWrapper The type which is used to erase the callback.
ContinuationWrapper The type which is used to erase the continuation data.
Args The current signature of the continuable.

Contents

Every object may me used as type-erasure backend as long as the requirements of a std::function like wrapper are satisfied.

Public types

using promise = promise_base<callback, detail::hints::signature_hint_tag<Args...>>
The promise type which is used to resolve continuations.
using continuable = continuable_base<ContinuationWrapper<sizeof(callback), void(promise)>, detail::hints::signature_hint_tag<Args...>>
The continuable type for the given parameters.