title: How to transfer the content of a map in a list without copying it
body: <p>I have a <code>map&lt;double, vector&lt;double&gt;&gt;</code> say <code>myMap</code> that is fairly big. I would like to put the content of <code>myMap[.].second</code> in a <code>list&lt;vector&lt;double&gt; &gt;</code> or <code>vector&lt;vector&lt;double&gt; &gt;</code>. Is it possible to do it without copying explicitely each <code>vector</code> element ? I was hoping it was doable with <code>iterators</code></p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;map&gt;
  using namespace std;
  
  int main()
  {
      double v_value[] = {1.1,2.4};
      vector&lt;double&gt; v(v_value, v_value + sizeof(v_value)/sizeof(double));
  
      map&lt;double,vector&lt;double&gt; &gt; myMap;
      myMap[10.01] = v;
      myMap[14.62] = v;
  }
  </code></pre>