prefix_sum-snippet.h 124 Bytes
Newer Older
1 2 3
using embb::algorithms::Scan;
Scan(input_range.begin(), input_range.end(), output_range.begin(),
     0, std::plus<int>());