add a cross reference to P.3

This commit is contained in:
Bjarne Stroustrup 2017-09-17 18:13:16 -04:00
parent 2839c87890
commit 1a3de0e9b8

View File

@ -594,6 +594,7 @@ Now, there is no explicit mention of the iteration mechanism, and the loop opera
for (auto& x : v) { /* modify x */ } for (auto& x : v) { /* modify x */ }
For more details about for-statements, see [ES.71](#Res-for-range).
Sometimes better still, use a named algorithm: Sometimes better still, use a named algorithm:
for_each(v, [](int x) { /* do something with the value of x */ }); for_each(v, [](int x) { /* do something with the value of x */ });