-
- Downloads
[utility] Add TypeList class
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
dune/common/typelist.hh
0 → 100644
Please register or sign in to comment