KDECore
KTypeListLength Class Reference
[Typelist classes, algorithms and macros]
This class template implements a compile-time algorithm for processing typelists. More...
#include <ktypelist.h>
Detailed Description
This class template implements a compile-time algorithm for processing typelists.
It expects one type argument: TList
.
KTypeListLength determines the number of elements (the length) of the typelist TList
and exports it through the member Value
. The length of KDE::NullType is 0. Example:
typedef KMakeTypeList<char, short, int, long>::Result IntegralTypes; assert(KTypeListLength<IntegralTypes>::Value == 4); assert(KTypeListLength<KDE::NullType>::Value == 0);
- Parameters:
-
TList the typelist of which the length is to be calculated
The documentation for this class was generated from the following file: