title: getting the current index from a for_each loop
body: <p>when working with a for loop such as this</p>
  
  <pre><code>for(int i=0 ; i&lt;collection.size() ; i++)
  {
    //current index is i and total size is size
  }
  </code></pre>
  
  <p>However I have something like this</p>
  
  <pre><code>  for_each(collection.begin(), collection.end(), [&amp;](MyTuple&amp; e)
          {
              //Total size would be collection.size()
              //How would i get the current index ?
          });
  </code></pre>