diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-08-06 20:10:14 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2023-08-06 20:10:14 +0200 |
commit | 5e9ffc26c26cbcb85a9e18f719fde1b9c178477f (patch) | |
tree | 584ee5847a0705e6ed20ef11664d569518738d5b /a3/concurrency.cc | |
parent | 025622f7ba344b1e47dd47c92ed380902ecbddfd (diff) |
A6: WIP (text is more or less in place)
Diffstat (limited to 'a3/concurrency.cc')
-rw-r--r-- | a3/concurrency.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/a3/concurrency.cc b/a3/concurrency.cc index 9838212..96da641 100644 --- a/a3/concurrency.cc +++ b/a3/concurrency.cc @@ -10,6 +10,7 @@ #include <concepts> #include <future> #include <ranges> +#include <execution> class Measure { @@ -89,7 +90,8 @@ template<typename C, typename T> std::vector<const T*> find_all(const C& c, const T& key) { std::vector<const T*> res{}; - std::for_each(c.begin(), c.end(), + std::for_each(std::execution::seq, + c.begin(), c.end(), [&key, &res](const T& value) { if(value == key) |