GrPPI  0.3.1
Generic and Reusable Parallel Pattern Interface
context.h
Go to the documentation of this file.
1 
21 #ifndef GRPPI_CONTEXT_H
22 #define GRPPI_CONTEXT_H
23 
24 #include "common/context.h"
25 
26 namespace grppi {
27 
44 template <typename ExecutionPolicy, typename Transformer>
45 auto run_with(ExecutionPolicy & ex, Transformer && transform_op)
46 {
48  std::forward<Transformer>(transform_op)};
49 }
50 
56 }
57 
58 #endif
Definition: callable_traits.h:26
Representation of a context pattern. Represents a context that uses a given policy to run a transform...
Definition: common/context.h:36
auto run_with(ExecutionPolicy &ex, Transformer &&transform_op)
Define a new Context on a data stream that can be composed in other streaming patterns.
Definition: context.h:45