Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 805 Bytes

typelist.md

File metadata and controls

33 lines (22 loc) · 805 Bytes

TypeList reference

Overview

metapp::TypeList is a template that holds a list of types.
For any end user, you only need to know how to construct a TypeList.

Header

#include "metapp/utilities/typelist.h"

Examples

TL1 is a type list of int and char.

using TL1 = metapp::TypeList<int, char>;

TL2 is a type list of std::string, std::vector<int>, bool, long, and double.

using TL2 = metapp::TypeList<std::string, std::vector<int>, bool, long, double>;

Use cases

TypeList is used when declaring meta type. The UpType can be a TypeList, and implementing cast and castFrom can use TypeList.
See document of DeclareMetaType for more details