![]() |
Implementation of a type list.The TypeList class is an implementation of a type list according to the example of Andrei Alexandrescu. The type list merely consists of the two data types Head and Tail. In order to create type lists of more data types, the TypeList class is used recursively: More...
#include <TypeList.h>
Public Types | |
using | Head = H |
Type of the head of the type list. | |
using | Tail = T |
Type of the tail of the type list. | |
Implementation of a type list.
The TypeList class is an implementation of a type list according to the example of Andrei Alexandrescu. The type list merely consists of the two data types Head and Tail. In order to create type lists of more data types, the TypeList class is used recursively:
The NullType data type is used to terminate a type list.
In order to create a type list, one of the predefined setup macros should be used: