Skip to content

Commit 7d73d59

Browse files
compare.pass.cpp
1 parent 938989c commit 7d73d59

File tree

1 file changed

+9
-9
lines changed
  • libcxx/include

1 file changed

+9
-9
lines changed

libcxx/include/map

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -676,34 +676,34 @@ class __map_value_compare<_Key, _CP, _Compare, false> {
676676
_Compare __comp_;
677677

678678
public:
679-
_LIBCPP_HIDE_FROM_ABI __map_value_compare() _NOEXCEPT_(is_nothrow_default_constructible<_Compare>::value)
679+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __map_value_compare() _NOEXCEPT_(is_nothrow_default_constructible<_Compare>::value)
680680
: __comp_() {}
681-
_LIBCPP_HIDE_FROM_ABI __map_value_compare(_Compare __c) _NOEXCEPT_(is_nothrow_copy_constructible<_Compare>::value)
681+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 __map_value_compare(_Compare __c) _NOEXCEPT_(is_nothrow_copy_constructible<_Compare>::value)
682682
: __comp_(__c) {}
683-
_LIBCPP_HIDE_FROM_ABI const _Compare& key_comp() const _NOEXCEPT { return __comp_; }
683+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 const _Compare& key_comp() const _NOEXCEPT { return __comp_; }
684684

685-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _CP& __x, const _CP& __y) const {
685+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _CP& __y) const {
686686
return __comp_(__x.__get_value().first, __y.__get_value().first);
687687
}
688-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _CP& __x, const _Key& __y) const {
688+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _Key& __y) const {
689689
return __comp_(__x.__get_value().first, __y);
690690
}
691-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _Key& __x, const _CP& __y) const {
691+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _Key& __x, const _CP& __y) const {
692692
return __comp_(__x, __y.__get_value().first);
693693
}
694-
void swap(__map_value_compare& __y) _NOEXCEPT_(__is_nothrow_swappable_v<_Compare>) {
694+
_LIBCPP_CONSTEXPR_SINCE_CXX26 void swap(__map_value_compare& __y) _NOEXCEPT_(__is_nothrow_swappable_v<_Compare>) {
695695
using std::swap;
696696
swap(__comp_, __y.__comp_);
697697
}
698698

699699
# if _LIBCPP_STD_VER >= 14
700700
template <typename _K2>
701-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _K2& __x, const _CP& __y) const {
701+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _K2& __x, const _CP& __y) const {
702702
return __comp_(__x, __y.__get_value().first);
703703
}
704704

705705
template <typename _K2>
706-
_LIBCPP_HIDE_FROM_ABI bool operator()(const _CP& __x, const _K2& __y) const {
706+
_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX26 bool operator()(const _CP& __x, const _K2& __y) const {
707707
return __comp_(__x.__get_value().first, __y);
708708
}
709709
# endif

0 commit comments

Comments
 (0)