The distinction between a for loop and a for each loop in C++ is unclear to me.
I've studied various books and tutorials, but I haven't yet understood how for each loop differs.
Examples of arrays that I've seen appear to imply that for each loop iterates over all of the items at once.
Could it be the unique benefit a range-based loop possesses?