GrPPI  0.2
Generic and Reusable Parallel Pattern Interface
farm.h
Go to the documentation of this file.
1 
21 #ifndef GRPPI_FARM_H
22 #define GRPPI_FARM_H
23 
24 #include "seq/farm.h"
25 #include "native/farm.h"
26 #include "omp/farm.h"
27 #include "tbb/farm.h"
28 #include "poly/farm.h"
29 
30 #include "common/patterns.h"
31 
32 namespace grppi {
33 
50 template <typename Execution, typename Transformer>
51 auto farm(Execution & ex, Transformer && transform_op)
52 {
54  std::forward<Transformer>(transform_op)};
55 }
56 
62 }
63 
64 #endif
Definition: callable_traits.h:24
Definition: patterns.h:51
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