35 #ifndef MADNESS_WORLD_ENABLE_IF_H__INCLUDED
36 #define MADNESS_WORLD_ENABLE_IF_H__INCLUDED
45 template <
bool B,
class returnT =
void>
51 template <
class returnT>
59 template <
class Cond,
class returnT =
void>
67 template <
bool B,
class returnT =
void>
73 template <
class returnT>
77 template <
class Cond,
class returnT =
void>
86 template <
bool B,
class returnT>
88 typedef typename returnT::type
type;
92 template <
class returnT>
101 template <
class Cond,
class returnT>
110 template <
bool B,
class returnT>
112 typedef typename returnT::type
type;
116 template <
class returnT>
125 template <
class Cond,
class returnT>
137 template <
bool Cond,
typename T1,
typename T2>
142 template <
typename T1,
typename T2>
147 template <
typename Cond,
typename T1,
typename T2>
148 struct if_ :
public if_c<Cond::value, T1, T2> {};
171 #define ENABLE_IF(CONDITION,TYPEIFTRUE) typename madness::enable_if< CONDITION, TYPEIFTRUE >::type
172 #define DISABLE_IF(CONDITION,TYPEIFTRUE) typename madness::disable_if< CONDITION, TYPEIFTRUE >::type
173 #define ENABLE_IF_SAME(A,B,TYPEIFTRUE) typename madness::enable_if<madness::is_same< A , B >, TYPEIFTRUE >::type
174 #define DISABLE_IF_SAME(A,B,TYPEIFTRUE) typename madness::disable_if<madness::is_same< A , B >, TYPEIFTRUE >::type
176 #endif // MADNESS_WORLD_ENABLE_IF_H__INCLUDED
lazy_disable_if from Boost for conditionally instantiating templates based on type ...
Definition: enable_if.h:126
disable_if from Boost for conditionally instantiating templates based on type
Definition: enable_if.h:78
returnT type
Definition: enable_if.h:47
returnT::type type
Definition: enable_if.h:88
Definition: enable_if.h:148
returnT::type type
Definition: enable_if.h:112
enable_if_c from Boost for conditionally instantiating templates based on type
Definition: enable_if.h:46
lazy_enable_if from Boost for conditionally instantiating templates based on type ...
Definition: enable_if.h:102
T1 type
Definition: enable_if.h:139
T2 type
Definition: enable_if.h:144
lazy_disable_if_c from Boost for conditionally instantiating templates based on type ...
Definition: enable_if.h:111
disable_if from Boost for conditionally instantiating templates based on type
Definition: enable_if.h:68
returnT type
Definition: enable_if.h:69
enable_if_same (from Boost?) for conditionally instantiating templates if two types are equal ...
Definition: enable_if.h:138
lazy_enable_if_c from Boost for conditionally instantiating templates based on type ...
Definition: enable_if.h:87
enable_if from Boost for conditionally instantiating templates based on type
Definition: enable_if.h:60
Holds machinery to set up Functions/FuncImpls using various Factories and Interfaces.
Definition: chem/atomutil.cc:45