diff options
Diffstat (limited to 'libcxx/include/__algorithm/ranges_max.h')
| -rw-r--r-- | libcxx/include/__algorithm/ranges_max.h | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/libcxx/include/__algorithm/ranges_max.h b/libcxx/include/__algorithm/ranges_max.h index f48bc3ececa2..55aef997698c 100644 --- a/libcxx/include/__algorithm/ranges_max.h +++ b/libcxx/include/__algorithm/ranges_max.h @@ -27,7 +27,7 @@  #  pragma GCC system_header  #endif -#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#if _LIBCPP_STD_VER > 17  _LIBCPP_PUSH_MACROS  #include <__undef_macros> @@ -39,14 +39,14 @@ namespace __max {  struct __fn {    template <class _Tp, class _Proj = identity,              indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> -  _LIBCPP_HIDE_FROM_ABI constexpr +  _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr    const _Tp& operator()(const _Tp& __a, const _Tp& __b, _Comp __comp = {}, _Proj __proj = {}) const {      return std::invoke(__comp, std::invoke(__proj, __a), std::invoke(__proj, __b)) ? __b : __a;    }    template <copyable _Tp, class _Proj = identity,              indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> -  _LIBCPP_HIDE_FROM_ABI constexpr +  _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr    _Tp operator()(initializer_list<_Tp> __il, _Comp __comp = {}, _Proj __proj = {}) const {      _LIBCPP_ASSERT(__il.begin() != __il.end(), "initializer_list must contain at least one element"); @@ -57,7 +57,7 @@ struct __fn {    template <input_range _Rp, class _Proj = identity,              indirect_strict_weak_order<projected<iterator_t<_Rp>, _Proj>> _Comp = ranges::less>      requires indirectly_copyable_storable<iterator_t<_Rp>, range_value_t<_Rp>*> -  _LIBCPP_HIDE_FROM_ABI constexpr +  _LIBCPP_NODISCARD_EXT _LIBCPP_HIDE_FROM_ABI constexpr    range_value_t<_Rp> operator()(_Rp&& __r, _Comp __comp = {}, _Proj __proj = {}) const {      auto __first = ranges::begin(__r);      auto __last = ranges::end(__r); @@ -88,6 +88,6 @@ _LIBCPP_END_NAMESPACE_STD  _LIBCPP_POP_MACROS -#endif // _LIBCPP_STD_VER > 17 && && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#endif // _LIBCPP_STD_VER > 17 &&  #endif // _LIBCPP___ALGORITHM_RANGES_MAX_H | 
