Which is better (or faster), a C++ for loop or the foreach operator provided by Qt? For example, the following condition
for
foreach
QList
A benchmark, and its results, on this can be found at http://richelbilderbeek.nl/CppExerciseAddOneAnswer.htm
IMHO (and many others here) it (that is speed) does not matter.
But feel free to draw your own conclusions.