Changeset 026cb10 in mainline
- Timestamp:
- 2018-07-05T21:41:22Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cf3b398
- Parents:
- 26d2990
- git-author:
- Dzejrou <dzejrou@…> (2018-04-30 22:22:12)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:22)
- Location:
- uspace/lib/cpp/include/impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/impl/map.hpp
r26d2990 r026cb10 525 525 const map<Key, Compare, Allocator>& rhs) 526 526 { 527 // TODO: need lexicographical_compare 528 return false; 527 return lexicographical_compare( 528 lhs.begin(), lhs.end(), 529 rhs.begin(), rhs.end(), 530 lhs.value_comp() 531 ); 529 532 } 530 533 … … 540 543 const map<Key, Compare, Allocator>& rhs) 541 544 { 542 // TODO: need lexicographical_compare 543 return false; 545 return rhs < lhs; 544 546 } 545 547 … … 548 550 const map<Key, Compare, Allocator>& rhs) 549 551 { 550 // TODO: need lexicographical_compare 551 return false; 552 return !(lhs < rhs); 552 553 } 553 554 … … 556 557 const map<Key, Compare, Allocator>& rhs) 557 558 { 558 // TODO: need lexicographical_compare559 return false;560 } 559 return !(rhs < lhs); 560 } 561 561 562 /** 562 563 * 23.4.5, class template multimap: … … 1030 1031 const multimap<Key, Compare, Allocator>& rhs) 1031 1032 { 1032 // TODO: need lexicographical_compare 1033 return false; 1033 return lexicographical_compare( 1034 lhs.begin(), lhs.end(), 1035 rhs.begin(), rhs.end(), 1036 lhs.value_comp() 1037 ); 1034 1038 } 1035 1039 … … 1045 1049 const multimap<Key, Compare, Allocator>& rhs) 1046 1050 { 1047 // TODO: need lexicographical_compare 1048 return false; 1051 return rhs < lhs; 1049 1052 } 1050 1053 … … 1053 1056 const multimap<Key, Compare, Allocator>& rhs) 1054 1057 { 1055 // TODO: need lexicographical_compare 1056 return false; 1058 return !(lhs < rhs); 1057 1059 } 1058 1060 … … 1061 1063 const multimap<Key, Compare, Allocator>& rhs) 1062 1064 { 1063 // TODO: need lexicographical_compare 1064 return false; 1065 return !(rhs < lhs); 1065 1066 } 1066 1067 } -
uspace/lib/cpp/include/impl/set.hpp
r26d2990 r026cb10 473 473 const set<Key, Compare, Allocator>& rhs) 474 474 { 475 // TODO: need lexicographical_compare 476 return false; 475 return lexicographical_compare( 476 lhs.begin(), lhs.end(), 477 rhs.begin(), rhs.end(), 478 lhs.key_comp() 479 ); 477 480 } 478 481 … … 488 491 const set<Key, Compare, Allocator>& rhs) 489 492 { 490 // TODO: need lexicographical_compare 491 return false; 493 return rhs < lhs; 492 494 } 493 495 … … 496 498 const set<Key, Compare, Allocator>& rhs) 497 499 { 498 // TODO: need lexicographical_compare 499 return false; 500 return !(lhs < rhs); 500 501 } 501 502 … … 504 505 const set<Key, Compare, Allocator>& rhs) 505 506 { 506 // TODO: need lexicographical_compare507 return false;508 } 507 return !(rhs < lhs); 508 } 509 509 510 /** 510 511 * 23.4.7, class template multiset: … … 942 943 const multiset<Key, Compare, Allocator>& rhs) 943 944 { 944 // TODO: need lexicographical_compare 945 return false; 945 return lexicographical_compare( 946 lhs.begin(), lhs.end(), 947 rhs.begin(), rhs.end(), 948 lhs.value_comp() 949 ); 946 950 } 947 951 … … 957 961 const multiset<Key, Compare, Allocator>& rhs) 958 962 { 959 // TODO: need lexicographical_compare 960 return false; 963 return rhs < lhs; 961 964 } 962 965 … … 965 968 const multiset<Key, Compare, Allocator>& rhs) 966 969 { 967 // TODO: need lexicographical_compare 968 return false; 970 return !(lhs < rhs); 969 971 } 970 972 … … 973 975 const multiset<Key, Compare, Allocator>& rhs) 974 976 { 975 // TODO: need lexicographical_compare 976 return false; 977 return !(rhs < lhs); 977 978 } 978 979 }
Note:
See TracChangeset
for help on using the changeset viewer.