title: How can I skip elements in a range-based for loop based on 'index'?
body: <p>Is there a way to access the iterator (I suppose there's no <em>loop index</em>?) in a C++11 range-based for loop?</p>
  <p>Often we need to do something special with the first element of a container and iterate over the remaining elements. So I'm looking for something like the <em><code>c++11_get_index_of</code></em> statement in this pseudo-code:</p>
  <pre><code>for (auto&amp; elem: container) 
  {
    if (c++11_get_index_of(elem) == 0)
       continue;
  
    // do something with remaining elements
  }
  </code></pre>
  <p>I'd really like to avoid going back to <a href="http://www.cprogramming.com/tutorial/stl/iterators.html" rel="nofollow noreferrer">old-style manual iterator handling</a> code in that scenario.</p>