src/lemon/utility.h
changeset 1337 6b2bdd70fe99
parent 1256 3bb4ed285c39
child 1359 1581f961cfaa
equal deleted inserted replaced
2:a7d7f9e0e502 3:3e07c59653ac
    35 #define LEMON_UTILITY_H
    35 #define LEMON_UTILITY_H
    36 
    36 
    37 namespace lemon
    37 namespace lemon
    38 {
    38 {
    39 
    39 
    40   /// Basic type for defining "tags". A "YES" condidion for enable_if.
    40   /// Basic type for defining "tags". A "YES" condition for enable_if.
    41 
    41 
    42   /// \todo This should go to a separate "basic_types.h" (or something)
    42   /// \todo This should go to a separate "basic_types.h" (or something)
    43   /// file.
    43   /// file.
    44   struct True {
    44   struct True {
    45     static const bool value = true;
    45     static const bool value = true;
    46   };
    46   };
    47 
    47 
    48   /// Basic type for defining "tags". A "NO" condidion for enable_if.
    48   /// Basic type for defining "tags". A "NO" condition for enable_if.
    49   struct False {
    49   struct False {
    50     static const bool value = false;
    50     static const bool value = false;
    51   };
    51   };
    52 
    52 
    53   template <typename T>
    53   template <typename T>