enable_if.hpp
Go to the documentation of this file.
1 
8 /*****************************************************************************
9 ** Ifdefs
10 *****************************************************************************/
11 
12 #ifndef ECL_MPL_ENABLE_HPP_
13 #define ECL_MPL_ENABLE_HPP_
14 
15 /*****************************************************************************
16 ** Namespaces
17 *****************************************************************************/
18 
19 namespace ecl {
20 
26 template <bool B, class T = void>
27 struct enable_if_c
28 {
29  typedef T type;
30 };
31 
37 template <class T>
38 struct enable_if_c<false, T>
39 {};
40 
66 template <class Condition, class T = void>
67 struct enable_if : public enable_if_c<Condition::value, T>
68 {};
69 
70 } //namespace ecl
71 
72 #endif /* ECL_MPL_ENABLE_HPP_ */


xbot_node
Author(s): Roc, wangpeng@droid.ac.cn
autogenerated on Sat Oct 10 2020 03:28:13