4 ms·
But then you have to define the loop internal logic elsewhere because C++ has no lambda (yet, at least in most places where it's used in production). God help y
by jamesaguilar 15y ago
But then you have to define the loop internal logic elsewhere because C++ has no lambda (yet, at least in most places where it's used in production). God help you if you have a lot of variables that need to be compared or referenced inside the loop.
- shin_lao 15y agoWithout lambdas you use functors.
- jamesaguilar 15y ago> then you have to define the loop internal logic elsewhere
- shin_lao 15y agoThe loop is performed by the algorithms. See std::for_each, std::transform, std::accumulate, std::partition, etc., etc.