Changeset 2078:123f08422c14 in lemon-0.x for lemon/bits/utility.h
- Timestamp:
- 05/12/06 11:54:58 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2741
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/bits/utility.h
r2077 r2078 107 107 }; 108 108 109 template <bool sless, bool sequal, bool bless>110 struct CTLessImpl {111 static const bool value =112 CTOr<sless, CTAnd<sequal, bless>::value>::value;113 };114 109 115 110 template <int left, int right> 116 111 struct CTLess { 117 static const bool value = 118 CTLessImpl<CTLess<left >> 1, right >> 1>::value, 119 CTEqual<left >> 1, right >> 1>::value, 120 CTLess<left & 1, right & 1>::value >::value; 112 static const bool value = left < right; 121 113 }; 122 114
Note: See TracChangeset
for help on using the changeset viewer.