title: What is "for (x : y)"?
body: <p>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 used</p>
  
  <pre><code>for (auto&amp; thread : threads)  
  </code></pre>
  
  <p>not really sure what that does<br>
  Here is a link to the blog i'm talking about <a href="http://baptiste-wicht.com/posts/2012/03/cpp11-concurrency-part1-start-threads.html" rel="noreferrer">LINK</a><br>
  Thanks to whoever answers this question for me<br>
  PS can you also give me a reference so i can read up on what that does and other related things I seem to be blind when searching for one</p>