Quantcast
Channel: What is "for (x : y)"? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

What 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
Browsing latest articles
Browse All 3 View Live


Latest Images