title: Is "for each" Microsoft specific?
body: <p>Visual C++ 2010 accepts:</p>
  
  <pre><code>std::vector&lt;int&gt; v;
  v.push_back(1);
  v.push_back(2);
  v.push_back(3);
  for each (auto i in v)
      std::cout &lt;&lt; i &lt;&lt; std::endl;
  </code></pre>
  
  <p>Is this a C++11 feature or a Microsoft extension? According to <a href="http://en.wikipedia.org/wiki/Foreach#C.2B.2B" rel="noreferrer">Wikipedia</a>, the syntax of C++11's for-each loop different:</p>
  
  <pre><code>int myint[] = {1,2,3,4,5};
  for (int&amp; i: myint)
  {
      std::cout &lt;&lt; i;
  }
  </code></pre>