21 #ifndef GRPPI_TBB_MAP_H 22 #define GRPPI_TBB_MAP_H 52 template <
typename InputIt,
typename OutputIt,
typename Transformer>
54 InputIt first, InputIt last,
56 Transformer && transf_op)
59 static_cast<std::size_t>(0),
60 static_cast<std::size_t>((last-first)),
61 [&] (std::size_t index){
62 auto current = (first_out+index);
63 *current = transf_op(*(first+index));
82 template <
typename InputIt,
typename OutputIt,
84 typename ... OtherInputIts>
86 InputIt first, InputIt last, OutputIt first_out,
87 Transformer && transf_op,
88 OtherInputIts ... more_firsts)
91 static_cast<std::size_t>(0),
92 static_cast<std::size_t>((last-first)),
93 [&] (std::size_t index){
94 auto current = (first_out+index);
95 *current = transf_op(*(first+index), *(more_firsts+index)...);
Definition: callable_traits.h:24
TBB parallel execution policy.
Definition: parallel_execution_tbb.h:37
void map(parallel_execution_native &ex, InputIt first, InputIt last, OutputIt first_out, Transformer &&transf_op)
Invoke Map pattern on a data sequence with native paralell execution.
Definition: native/map.h:50