title: How to fill a vector with typeid's from variadic template arguments
body: <pre><code>std::vector&lt;std::type_index&gt; vec;
  
  template &lt;typename T1, typename... Tn&gt;
  void Fill() {
      vec.push_back(typeid(T1));
      // fill the vector with the remaining type ids
  }
  </code></pre>
  
  <p>I want to fill the vector with the <code>typeid</code>s of the template arguments. How could I implement this?</p>