c++ - Is it possible to generate a parameter pack? -


consider following pseudo code :

template<class... t> struct worker : unique<t...>::type...{}; struct x{}; struct y{}; struct z{}; 

is possible write template unique such generates parameter pack consisting of unique types among ts, worker<x,y,x,z> directly derived x, y, z respectively ,in order, given ts non final classes?

afaik: no.

the problem type result of typedef directive, , typedef cannot alias packs. bother, , computations on packs require introducing wrapper type (such template <typename...> struct pack {};) able pass them around.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -