17 #ifndef STXXL_COMMON_TMETA_HEADER
18 #define STXXL_COMMON_TMETA_HEADER
29 template <
bool Flag,
class Type1,
class Type2>
35 template <
class Type1,
class Type2>
36 struct IF<false, Type1, Type2>
43 template <
bool Flag,
unsigned Num1,
unsigned Num2>
52 template <
unsigned Num1,
unsigned Num2>
53 struct IF_N<false, Num1, Num2>
65 template <
int tag_,
class Type_,
class Next_ = NilCase>
73 template <
int tag,
class Case>
80 found = (caseTag == tag || caseTag ==
DEFAULT)
84 typedef typename IF<found,
98 template <
unsigned_type Input>
128 template <
unsigned_type Input>
163 #endif // !STXXL_COMMON_TMETA_HEADER
IF< found, typename Case::Type, typename SWITCH< tag, NextCase >::result >::result result
If Flag is true then IF<>::result is Num1 otherwise of IF<>::result is Num2.
#define STXXL_BEGIN_NAMESPACE
IF template metaprogramming statement.
#define STXXL_END_NAMESPACE