dune-common  2.5.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Dune::TypeList< T > Struct Template Reference

A simple type list. More...

#include <dune/common/typelist.hh>

Detailed Description

template<class... T>
struct Dune::TypeList< T >

A simple type list.

The purpose of this is to encapsulate a list of types. This allows, e.g., to pack an argument-pack into one type. In contrast to a std::tuple a TypeList can be created without creating any object of the stored types.

This can, e.g., be used for overload resolution with tag-dispatch where TypeList is used as tag. In combination with PriorityTag this allows to emulate partial specialization of function templates in a sane way, i.e., without the hassle of classic specialization of function templates


The documentation for this struct was generated from the following file: