equal
deleted
inserted
replaced
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> |