@@ -1617,12 +1617,7 @@ operator<=(const map<_Key, _Tp, _Compare, _Allocator>& __x, const map<_Key, _Tp,
16171617template <class _Key , class _Tp , class _Compare , class _Allocator >
16181618_LIBCPP_HIDE_FROM_ABI __synth_three_way_result<pair<const _Key, _Tp>>
16191619operator <=>(const map<_Key, _Tp, _Compare, _Allocator>& __x, const map<_Key, _Tp, _Compare, _Allocator>& __y) {
1620- return std::lexicographical_compare_three_way (
1621- __x.begin (),
1622- __x.end (),
1623- __y.begin (),
1624- __y.end (),
1625- std::__synth_three_way<pair<const _Key, _Tp>, pair<const _Key, _Tp>>);
1620+ return std::lexicographical_compare_three_way (__x.begin (), __x.end (), __y.begin (), __y.end (), std::__synth_three_way);
16261621}
16271622
16281623#endif // #if _LIBCPP_STD_VER <= 17
@@ -2136,12 +2131,7 @@ template <class _Key, class _Tp, class _Compare, class _Allocator>
21362131_LIBCPP_HIDE_FROM_ABI __synth_three_way_result<pair<const _Key, _Tp>>
21372132operator <=>(const multimap<_Key, _Tp, _Compare, _Allocator>& __x,
21382133 const multimap<_Key, _Tp, _Compare, _Allocator>& __y) {
2139- return std::lexicographical_compare_three_way (
2140- __x.begin (),
2141- __x.end (),
2142- __y.begin (),
2143- __y.end (),
2144- std::__synth_three_way<pair<const _Key, _Tp>, pair<const _Key, _Tp>>);
2134+ return std::lexicographical_compare_three_way (__x.begin (), __x.end (), __y.begin (), __y.end (), __synth_three_way);
21452135}
21462136
21472137#endif // #if _LIBCPP_STD_VER <= 17
0 commit comments