January 2018
Intermediate to advanced
374 pages
9h 53m
English
We promote the use of algorithms over hand-written for-loops for a number of reasons. First, they are more readable, less error-prone, and future-proof in the sense that it is easier to revisit the code and modify or optimize it. We will try to illustrate this with a few examples.
Let's look at the advantages of STL algorithms over handcrafted for-loops: