Changeset f041811 in mainline for uspace/lib/cpp/include/impl/utility.hpp
- Timestamp:
- 2018-07-05T21:41:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56521a2
- Parents:
- 604038c
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2017-10-24 19:30:27)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/utility.hpp
r604038c rf041811 38 38 */ 39 39 40 template<typename T> 41 bool operator!=(const T& lhs, const T& rhs) 42 { 43 return !(lhs == rhs); 44 } 45 46 template<typename T> 47 bool operator>(const T& lhs, const T& rhs) 48 { 49 return (rhs < lhs); 50 } 51 52 template<typename T> 53 bool operator<=(const T& lhs, const T& rhs) 54 { 55 return !(rhs < lhs); 56 } 57 58 template<typename T> 59 bool operator>=(const T& lhs, const T& rhs) 60 { 61 return !(lhs < rhs); 40 namespace rel_ops 41 { 42 template<typename T> 43 bool operator!=(const T& lhs, const T& rhs) 44 { 45 return !(lhs == rhs); 46 } 47 48 template<typename T> 49 bool operator>(const T& lhs, const T& rhs) 50 { 51 return (rhs < lhs); 52 } 53 54 template<typename T> 55 bool operator<=(const T& lhs, const T& rhs) 56 { 57 return !(rhs < lhs); 58 } 59 60 template<typename T> 61 bool operator>=(const T& lhs, const T& rhs) 62 { 63 return !(lhs < rhs); 64 } 62 65 } 63 66
Note:
See TracChangeset
for help on using the changeset viewer.