title: How to iterate through a std::map<string,int> and std::vector<int> using single for loop?
body: <p>How to iterate through a <code>std::map&lt;string,int&gt;</code> and <code>std::vector&lt;int&gt;</code> using single <code>for</code> loop ?</p>
  
  <p>I have seen <a href="https://stackoverflow.com/q/2687392/1691223">this questions</a> but could not solve my problem. </p>
  
  <p>I am trying like this</p>
  
  <pre><code>map&lt;string,int&gt; data;
  data["Shravan"] = 1;
  data["Mama"] = 2;
  data["Sa1"] = 3;
  data["Jhandu"] = 4;
  
  vector&lt;int&gt; values = {1,2,3,4};
  
  for(const auto&amp; it1: data,it2 : values) {
      // Do something 
  }
  </code></pre>
  
  <p><strong>Edit</strong> :  I can not go through one by one. Because i am using the key of <code>std::map</code> and value of <code>std::vector</code> in the same function. Which will be called inside <code>for</code> loop.</p>
  
  <p>Both the container of same size. </p>