title: How to add and read elements of vector of two type of variables
body: <p>I read this post: <a href="https://stackoverflow.com/questions/17734042/creating-a-vector-that-holds-two-different-data-types-or-classes">vector hold two differents data types</a></p>
  
  <p>Then I am trying to use this format.</p>
  
  <p>I see in this post two ways to do that:</p>
  
  <p>In my case:</p>
  
  <p>A) <code>std::vector&lt;std::pair&lt;Vecplane3d, CartesianPoint&gt;&gt; vector_super;</code></p>
  
  <p>B) <code>std::vector&lt;std::tuple&lt;Vecplane3d, CartesianPoint&gt;&gt; vector_super;</code></p>
  
  <p>But when I want to fill this vector. I am not able to do it.</p>
  
  <p>I coded this:</p>
  
  <pre><code>vector_centroids.push_back(vec_normal, vec_centroid);
  </code></pre>
  
  <p>And I coded other way:</p>
  
  <pre><code>vector_centroids.insert(vec_normal, vec_centroid);
  </code></pre>
  
  <p>Sorry but I am looking for documentatio about that and I didn't find anything.</p>