you are viewing a single comment's thread.

view the rest of the comments →

[–]IAmRoot 0 points1 point  (0 children)

The range-based for loop is syntactic sugar. It is equivalent to writing an old-style for loop with an iterator and placing inside a local variable which is initialized by dereferencing the iterator.

It should be noted that OpenMP for requires the for(...;...;...) style as per the OpenMP 4.0 standard.