title: How can I get the current position without another variable?
body: <p>Many times when creating a grammatical list (with comas), I use similar code to the following:</p>
  
  <pre><code>std::stringstream list;
  int i = 0;
  for (auto itemListIt = itemList.begin(); itemListIt != itemList.end(); itemListIt++)
  {
      list &lt;&lt; *itemListIt;
      if (i &lt; itemList.size() - 1) list &lt;&lt; ", ";
      i++;
  }
  </code></pre>
  
  <p>Is there some more concise way do this, perhaps without the extra variable - 'i'?</p>