Answer by Pixelchemist for What is "for (x : y)"?
It is a C++11 range-based loop, requiring a ranged expression which may be:an array orbraced listsa class having eitherMember functions begin() and end() oravailable free functions begin() and end()...
View ArticleAnswer by Kerrek SB for What is "for (x : y)"?
C++11 introduced a new iteration statement, the so-called range-based for loop. It differs from the ordinary for loop in that it only gives you access to the members of a range, without requiring you...
View ArticleWhat is "for (x : y)"?
So i was looking around on the interwebs about threads and i came to a blog/tutorial thing about threads but what confused me was this line that he usedfor (auto& thread : threads) not really sure...
View Article