Getting the size of each type of the parameter pack?
<p>After a long day of unsuccessful searching in the web for a practical solution to solve my problem, I decided to post my issue here, to clarify my goal I provided this simple code:    </p>

<pre><code>template&lt;typename... types&gt;
std::vector&lt;SIZE_T&gt; GetTypesSize()
{
    std::vector&lt;SIZE_T&gt; typesSizeContainer;
    typesSizeContainer.reserve(sizeof... (types)); 

    /*
     * What I want here is a mechanism to loop throw 
     * each element of the parameter pack to get its size 
     * then push it into typesSizeContainer.   
     * Something similar to :
     *
     *     for(auto&amp; element : types...) {
     *         typesSizeContainer.push(sizeof(element));
     *     }
     * 
     */

    return std::move(typesSizeContainer);
}
</code></pre>

<p>When I call this function template in this code:</p>

<pre><code>// platform x86
std::vector&lt;SIZE_T&gt; tempVactor;
tempVactor = GetTypesSize&lt;char, short, int&gt;(); 
</code></pre>

<p>The elements of the <code>tempVactor</code> should be <code>{ 1, 2, 4 }</code>.</p>

<p>Any suggestion or solution is considerable.</p>