17 #ifndef STXXL_COMMON_TMETA_HEADER
18 #define STXXL_COMMON_TMETA_HEADER
30 template <
bool Flag,
class Type1,
class Type2>
36 template <
class Type1,
class Type2>
37 struct IF<false, Type1, Type2>
45 template <
bool Flag,
unsigned Num1,
unsigned Num2>
54 template <
unsigned Num1,
unsigned Num2>
55 struct IF_N<false, Num1, Num2>
67 template <
int tag_,
class Type_,
class Next_ = NilCase>
75 template <
int tag,
class Case>
82 found = (caseTag == tag || caseTag ==
DEFAULT)
86 typedef typename IF<found,
100 template <
unsigned_type Input>
130 template <
unsigned_type Input>
165 #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