Helper classs for checking existence of a nested class
authordeba
Thu, 19 Apr 2007 15:12:59 +0000
changeset 242508b64ae5a564
parent 2424 95cd24940d00
child 2426 6e1027a05d73
Helper classs for checking existence of a nested class
lemon/bits/utility.h
     1.1 --- a/lemon/bits/utility.h	Thu Apr 19 15:11:58 2007 +0000
     1.2 +++ b/lemon/bits/utility.h	Thu Apr 19 15:12:59 2007 +0000
     1.3 @@ -83,6 +83,12 @@
     1.4    template<int T> struct dummy { dummy(int) {} };
     1.5  
     1.6    /**************** enable_if from BOOST ****************/
     1.7 +  
     1.8 +  template <typename Type, typename T = void>
     1.9 +  struct exists {
    1.10 +    typedef T type;
    1.11 +  };
    1.12 +
    1.13   
    1.14    template <bool B, class T = void>
    1.15    struct enable_if_c {