Extend execution framework with convenience functions

This commit is contained in:
tamasmeszaros 2021-03-18 09:38:21 +01:00
parent 46fd722f3c
commit 4eb13a407f
2 changed files with 38 additions and 6 deletions

View file

@ -248,7 +248,7 @@ TEST_CASE("Test concurrency")
double ref = std::accumulate(vals.begin(), vals.end(), 0.);
double s = sla::ccr_par::reduce(vals.begin(), vals.end(), 0., std::plus<double>{});
double s = execution::accumulate(ex_tbb, vals.begin(), vals.end(), 0.);
REQUIRE(s == Approx(ref));
}