We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
for_each_n
1 parent 89a1ca0 commit fd0c089Copy full SHA for fd0c089
docs/standard-library/algorithm-functions.md
@@ -2266,13 +2266,11 @@ otherwise the first element.
2266
### Example
2267
2268
This example depicts a user-defined function object class, production code often
2269
-uses [`lambda`](https://docs.microsoft.com/en-us/cpp/cpp/lambda-expressions-in-cpp?view=msvc-170)s to achieve the same result with less code
2270
-
2271
-Example requires `c++17`
+uses [`lambda`](https://docs.microsoft.com/cpp/cpp/lambda-expressions-in-cpp?view=msvc-170)s to achieve the same result with less code
2272
2273
```cpp
2274
// alg_for_each_n.cpp
2275
-// compile with: /EHsc
+// compile with /EHsc and /std:c++17 (or higher)
2276
#include <algorithm>
2277
#include <iostream>
2278
#include <vector>
0 commit comments