TypeList

#include #include using namespace std; class NullType; namespace TL { template struct TypeList { typedef T head; typedef U tail; }; } using namespace TL; #define TYPELIST_1(T1) TypeList #define TYPELIST_2(T1,T2) TypeList #define TYPELIST_3(T1,T2,T3) TypeList typedef TypeList > CharList; int main(int argc, char *argv[]) { CharList::head b[] = "char"; cout<

你可能感兴趣的:(struct,Class,include)