21 #ifndef GRPPI_SEQ_FARM_H 22 #define GRPPI_SEQ_FARM_H 45 template <
typename Generator,
typename Consumer>
47 Generator generate_op, Consumer consume_op)
50 auto item{generate_op()};
67 template <
typename Generator,
typename Transformer,
typename Consumer>
69 Generator generate_op, Transformer transform_op, Consumer consume_op)
72 auto item{generate_op()};
74 consume_op(transform_op(*item));
Definition: callable_traits.h:24
Sequential execution policy.
Definition: sequential_execution.h:31
auto farm(Execution &ex, Transformer &&transform_op)
Invoke Farm pattern on a data stream that can be composed in other streaming patterns.
Definition: farm.h:51