Changeset 894a5f for src/base/index.hpp
- Timestamp:
- Feb 2, 2012, 1:58:12 PM (14 years ago)
- Children:
- 32ff22
- Parents:
- 01be70
- File:
-
- 1 edited
-
src/base/index.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/base/index.hpp
r01be70 r894a5f 101 101 } 102 102 103 bool operator<(const Index& other) const 104 { 105 for (int j=0; j<3; ++j) { 106 if (this->i[j] < other.i[j]) return true; 107 if (this->i[j] != other.i[j]) return false; 108 } 109 110 return false; 111 } 112 103 113 bool operator!=(const Index& other) const 104 114 { … … 275 285 } 276 286 277 bool operator<(const Index& lhs, const Index& rhs);278 287 const Index Max(const Index& index1, const Index& index2); 279 288 std::ostream& operator<<(std::ostream& out, const Index& index);
Note:
See TracChangeset
for help on using the changeset viewer.
