Changeset 127 for pjproject/trunk/pjlib/include/pj++/types.hpp
- Timestamp:
- Jan 30, 2006 6:40:05 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj++/types.hpp
r65 r127 157 157 }; 158 158 159 // 160 // Macro to declare common object comparison operators. 161 // 162 #define PJ_DECLARE_OPERATORS(rhs_type) \ 163 bool operator!=(rhs_type rhs) const { \ 164 return !operator==(rhs); } \ 165 bool operator<=(rhs_type rhs) const { \ 166 return operator<(rhs) || operator==(rhs); } \ 167 bool operator>(rhs_type rhs) const { \ 168 return !operator<=(rhs); } \ 169 bool operator>=(rhs_type rhs) const { \ 170 return !operator<(rhs); } 171 172 159 173 #endif /* __PJPP_TYPES_HPP__ */ 160 174
Note: See TracChangeset
for help on using the changeset viewer.