summaryrefslogtreecommitdiff
path: root/a3/concurrency.cc
diff options
context:
space:
mode:
Diffstat (limited to 'a3/concurrency.cc')
-rw-r--r--a3/concurrency.cc4
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)