title: c++ multimap insert more than two values
body: <p>I have found that it's possible to declare such std::multimap:</p>
  
  <pre><code>multimap &lt; u_int32_t, u_int32_t,string&gt; lines;
  </code></pre>
  
  <p>If it's possible to declare it then it should be possible to insert too</p>
  
  <p>But I wonder how?</p>
  
  <p>I have tried <code>std::pair</code>, but it seems  I need something like <code>std::triple</code>.</p>
  
  <p>I know it's possible to decrale some struct and hold into that struct a few values. But I would rather prefer to do it directly. Moreover because it's possible to declare it.</p>
  
  <p><strong>EDIT</strong> <br>
  I did serious mistake and  it turned out I really understood multimap wrong. <br>
  Screams of people here and downvotes made me to reread documentation.
  Now I use it so: <br></p>
  
  <pre><code>struct container {
  u_int32_t  size_in_blocks;
  string name_of_file;
  };
              //size_of_file
  multimap &lt;  u_int32_t, container&gt; lines;
         // first value is used as a key for sorting
         // second value is just a storage
  
  container d;// initialization
  lines.insert ( std::pair&lt;u_int32_t,container&gt;( total_size_bytes, d) );
  </code></pre>
  
  <p>Thanks all!</p>