title: Extract vector from std::map<int, std::vector>
body: <p>Here is my code</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;map&gt;
  #include &lt;string&gt;
  #include &lt;vector&gt;
  
  typedef std::vector&lt;int&gt;  VectorInt;
  typedef std::map&lt;int, VectorInt&gt; MapVectorInt;
  
  int main() { 
          MapVectorInt myMap;
  
          VectorInt v1;
          v1.push_back(1);
          v1.push_back(3);
          v1.push_back(5);
  
          VectorInt v2;
          v2.push_back(2);
          v2.push_back(4);
          v2.push_back(6);
  
          myMap.insert(std::make_pair(0, v1));
          myMap.insert(std::make_pair(1, v2)); 
  
  
  
          return 0;
  }
  </code></pre>
  
  <p>What is the bese way to take (extract/get) the vector at position x (eg 1,2...);</p>