title: How to populate map of string and pair of vectors of double
body: <p>What is the best way to populate with values this type?</p>
  
  <pre><code>typedef std::map&lt;std::string, std::pair&lt;std::vector&lt;double&gt;, std::vector&lt;double&gt;&gt;&gt; buf;
  </code></pre>
  
  <p>So, I need something like this:</p>
  
  <pre><code>(“Label”, {1,2,3}, {100,200,300})
  </code></pre>
  
  <p>Thank you in advance!</p>
  
  <p><strong>UP:</strong>
  So, I came to this. But it looks not very nice I think:</p>
  
  <pre><code>double a[] = {0.1, 0.2};
  double b[] = {0.0, 0.0};
  foo.insert( make_pair("box", make_pair(vector&lt;double&gt;(a, a + sizeof(a) / sizeof(a[0])), vector&lt;double&gt;(b, b + sizeof(b) / sizeof(b[0]))) ) );
  </code></pre>