lemon/utility.h
changeset 1697 4c593a4096da
parent 1630 f67737f5727a
child 1705 3f63d9db307b
equal deleted inserted replaced
2:5332aedd97a8 3:1851abf55dc0
    62   ///
    62   ///
    63   ///\sa True
    63   ///\sa True
    64   struct False {
    64   struct False {
    65     ///\e
    65     ///\e
    66     static const bool value = false;
    66     static const bool value = false;
       
    67   };
       
    68 
       
    69   template <bool left, bool right>
       
    70   struct _CompileTimeAnd {
       
    71     static const bool value = false;
       
    72   };
       
    73   
       
    74   template <>
       
    75   struct _CompileTimeAnd<true, true> {
       
    76     static const bool value = true;
       
    77   };
       
    78 
       
    79   template <typename Left, typename Right>
       
    80   struct CompileTimeAnd {
       
    81     static const bool value = 
       
    82     _CompileTimeAnd<Left::value, Right::value>::value;
    67   };
    83   };
    68 
    84 
    69   template <typename T>
    85   template <typename T>
    70   struct Wrap {
    86   struct Wrap {
    71     const T &value;
    87     const T &value;