Monthly Archives March 2013

Getting more out of the range-based for statement in C++11

Among the most useful features added to C++11 is the range-based for statement. It is defined to be equivalent to the usual iterator-based loop from begin() to end() and makes standard iteration look way more appealing. Keeping the noise out of a large fraction of iterator-based loops is great, but other common for loops are [...]