lemon/bits/utility.h
changeset 2511 a99186a9b6b0
parent 2391 14a343be7a5a
child 2553 bfced05fa852
equal deleted inserted replaced
6:ba2fdf613fdd 7:cf07e9fb012d
    81   /**************** dummy class to avoid ambiguity ****************/
    81   /**************** dummy class to avoid ambiguity ****************/
    82 
    82 
    83   template<int T> struct dummy { dummy(int) {} };
    83   template<int T> struct dummy { dummy(int) {} };
    84 
    84 
    85   /**************** enable_if from BOOST ****************/
    85   /**************** enable_if from BOOST ****************/
       
    86   
       
    87   template <typename Type, typename T = void>
       
    88   struct exists {
       
    89     typedef T type;
       
    90   };
       
    91 
    86  
    92  
    87   template <bool B, class T = void>
    93   template <bool B, class T = void>
    88   struct enable_if_c {
    94   struct enable_if_c {
    89     typedef T type;
    95     typedef T type;
    90   };
    96   };