C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::flow::gen::from_callable< F > Class Template Reference

A generator that emits values from a function object. More...

#include <from_callable.hpp>

Public Types

using callable_res_t = std::invoke_result_t<F>
 
using output_type = detail::unboxed_t<callable_res_t>
 

Public Member Functions

 from_callable (F fn)
 
 from_callable (from_callable &&)=default
 
 from_callable (const from_callable &)=default
 
from_callableoperator= (from_callable &&)=default
 
from_callableoperator= (const from_callable &)=default
 
template<class Step , class... Steps>
void pull (size_t n, Step &step, Steps &... steps)
 

Static Public Attributes

static constexpr bool boxed_output
 

Detailed Description

template<class F>
class caf::flow::gen::from_callable< F >

A generator that emits values from a function object.

Member Data Documentation

◆ boxed_output

template<class F >
bool caf::flow::gen::from_callable< F >::boxed_output
staticconstexpr
Initial value:
= detail::is_optional_v<callable_res_t>
|| detail::is_expected_v<callable_res_t>

The documentation for this class was generated from the following file: