KDECore
KTypeListLength< TList > Class Template Reference
#include <ktypelist.h>
Detailed Description
template<class TList>
class KTypeListLength< TList >
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
Definition at line 485 of file ktypelist.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Sep 11 2019 22:37:57 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2019 The KDE developers.
Generated on Wed Sep 11 2019 22:37:57 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.