Feature/typelist
- Nov 17, 2015
-
-
Carsten Gräser authored
-
Carsten Gräser authored
We should always export ::Type and ::type to follow the dune convention and the std pattern for type traits.
-
Carsten Gräser authored
-
Carsten Gräser authored
This can be used to 'store' an argument pack and access its members. In contrast to a std::tuple<T...> which is a container of objects of types T... a TypeList<T...> only captures the types T... . Hence one can easily create TypeList objects and use them to pass types around or. e.g., in overload resolution where they can be used for tag-dispatch. This class is e.g. used in the concept checking facility I'll add soon. Notice that adding a template packer<T...> doing exactly the same has been proposed for the standard in N4115 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4115.html
-