Skip to content

Commit 28ed94b

Browse files
cf
1 parent dcc1533 commit 28ed94b

File tree

1 file changed

+11
-4
lines changed
  • libcxx/include

1 file changed

+11
-4
lines changed

libcxx/include/map

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,17 @@ public:
647647
: __comp_(__c) {}
648648
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 const _Compare& key_comp() const _NOEXCEPT { return __comp_; }
649649

650-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _CP& __y) const { return __comp_(__x.first, __y.first); }
651-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _Key& __y) const { return __comp_(__x.first, __y); }
652-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _Key& __x, const _CP& __y) const { return __comp_(__x, __y.first); }
653-
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 void swap(__map_value_compare& __y) _NOEXCEPT_(__is_nothrow_swappable_v<_Compare>) {
650+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _CP& __y) const {
651+
return __comp_(__x.first, __y.first);
652+
}
653+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _Key& __y) const {
654+
return __comp_(__x.first, __y);
655+
}
656+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _Key& __x, const _CP& __y) const {
657+
return __comp_(__x, __y.first);
658+
}
659+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 void swap(__map_value_compare& __y)
660+
_NOEXCEPT_(__is_nothrow_swappable_v<_Compare>) {
654661
using std::swap;
655662
swap(__comp_, __y.__comp_);
656663
}

0 commit comments

Comments
 (0)