Changeset 78f0422c in mainline for uspace/lib/cpp/include/__bits/algorithm.hpp
- Timestamp:
- 2023-10-22T17:27:09Z (16 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 133461c
- Parents:
- 71b4444 (diff), dfb16c4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/__bits/algorithm.hpp
r71b4444 r78f0422c 1110 1110 InputIterator2 last2) 1111 1111 { 1112 while ((first1 != last1) && (first2 != last2)) 1113 { 1114 if (*first1 < *first2) 1115 return true; 1116 if (*first2 < *first1) 1117 return false; 1118 1119 ++first1; 1120 ++first2; 1121 } 1122 1112 1123 /** 1113 * *first1 and *first2 can have different types1114 * so we use a transparent comparator.1124 * Up until now they are same, so we have to check 1125 * if we reached the end on one. 1115 1126 */ 1116 return lexicographical_compare( 1117 first1, last1, first2, last2, 1118 less<void>{} 1119 ); 1127 return (first1 == last1) && (first2 != last2); 1120 1128 } 1121 1129
Note:
See TracChangeset
for help on using the changeset viewer.