title: Python's enumerate in c++
body: <p>In Python , instead of </p>
  
  <pre><code>colors = ['red', 'green', 'blue', 'yellow']
  
  for i in range(len(colors)):
      print i, '---&gt;', colors[i]
  </code></pre>
  
  <p>One can write</p>
  
  <pre><code>for i, color in enumerate(colors):
      print i, '---&gt;', color
  </code></pre>
  
  <p>Is there a similar thing in c++?</p>