Topic: Syntax for storing pack of types.


Author: =?UTF-8?B?0JLQu9Cw0LTQuNGB0LvQsNCyINCa0L7Qu9C+0YLQstC40L0=?= <vlad.kolotvin@gmail.com>
Date: Sun, 6 Jan 2013 06:13:10 -0800 (PST)
Raw View
------=_Part_139_29483378.1357481590440
Content-Type: text/plain; charset=ISO-8859-1

I think it might be useful.

Example of storing:

template<class... Types> struct B {
    typedef Types pack;
};

Example of expanding:

std::tuple<function_traits<void (int,double,float)>::args...> tuple_of_args;

--




------=_Part_139_29483378.1357481590440
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I think it might be useful.<div><br><div>Example of storing:</div><div><br>=
<div><div>template&lt;class... Types&gt; struct B {</div><div>&nbsp; &nbsp;=
 typedef Types pack;</div><div>};</div></div><div><br></div><div>Example of=
 expanding:</div></div><div><br></div><div>std::tuple&lt;function_traits&lt=
;void (int,double,float)&gt;::args...&gt; tuple_of_args;</div></div>

<p></p>

-- <br />
&nbsp;<br />
&nbsp;<br />
&nbsp;<br />

------=_Part_139_29483378.1357481590440--

.