From e66f5bb28e86e8bee85f815c26bc696e545d694c Mon Sep 17 00:00:00 2001 From: Malcolm Parsons Date: Sun, 2 Oct 2016 16:28:24 +0100 Subject: [PATCH] P.3 Split execution policy and container --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index a3dd5ce..ecfd336 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -501,7 +501,7 @@ Now, there is no explicit mention of the iteration mechanism, and the loop opera Sometimes better still, use a named algorithm: for_each(v, [](int x) { /* do something with x */ }); - for_each(parallel.v, [](int x) { /* do something with x */ }); + for_each(par, v, [](int x) { /* do something with x */ }); The last variant makes it clear that we are not interested in the order in which the elements of `v` are handled.