diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:03:47 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2023-07-26 19:04:23 +0000 | 
| commit | 7fa27ce4a07f19b07799a767fc29416f3b625afb (patch) | |
| tree | 27825c83636c4de341eb09a74f49f5d38a15d165 /libcxx/include/__algorithm/ranges_make_heap.h | |
| parent | e3b557809604d036af6e00c60f012c2025b59a5e (diff) | |
Diffstat (limited to 'libcxx/include/__algorithm/ranges_make_heap.h')
| -rw-r--r-- | libcxx/include/__algorithm/ranges_make_heap.h | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/libcxx/include/__algorithm/ranges_make_heap.h b/libcxx/include/__algorithm/ranges_make_heap.h index f25c7ab58888..f17eabff43d2 100644 --- a/libcxx/include/__algorithm/ranges_make_heap.h +++ b/libcxx/include/__algorithm/ranges_make_heap.h @@ -32,7 +32,7 @@  #  pragma GCC system_header  #endif -#if _LIBCPP_STD_VER > 17 +#if _LIBCPP_STD_VER >= 20  _LIBCPP_BEGIN_NAMESPACE_STD @@ -41,8 +41,8 @@ namespace __make_heap {  struct __fn {    template <class _Iter, class _Sent, class _Comp, class _Proj> -  _LIBCPP_HIDE_FROM_ABI constexpr static -  _Iter __make_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) { +  _LIBCPP_HIDE_FROM_ABI constexpr static _Iter +  __make_heap_fn_impl(_Iter __first, _Sent __last, _Comp& __comp, _Proj& __proj) {      auto __last_iter = ranges::next(__first, __last);      auto&& __projected_comp = std::__make_projected(__comp, __proj); @@ -53,15 +53,15 @@ struct __fn {    template <random_access_iterator _Iter, sentinel_for<_Iter> _Sent, class _Comp = ranges::less, class _Proj = identity>      requires sortable<_Iter, _Comp, _Proj> -  _LIBCPP_HIDE_FROM_ABI constexpr -  _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { +  _LIBCPP_HIDE_FROM_ABI constexpr _Iter +  operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const {      return __make_heap_fn_impl(std::move(__first), std::move(__last), __comp, __proj);    }    template <random_access_range _Range, class _Comp = ranges::less, class _Proj = identity>      requires sortable<iterator_t<_Range>, _Comp, _Proj> -  _LIBCPP_HIDE_FROM_ABI constexpr -  borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { +  _LIBCPP_HIDE_FROM_ABI constexpr borrowed_iterator_t<_Range> +  operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const {      return __make_heap_fn_impl(ranges::begin(__r), ranges::end(__r), __comp, __proj);    }  }; @@ -69,12 +69,12 @@ struct __fn {  } // namespace __make_heap  inline namespace __cpo { -  inline constexpr auto make_heap = __make_heap::__fn{}; +inline constexpr auto make_heap = __make_heap::__fn{};  } // namespace __cpo  } // namespace ranges  _LIBCPP_END_NAMESPACE_STD -#endif // _LIBCPP_STD_VER > 17 +#endif // _LIBCPP_STD_VER >= 20  #endif // _LIBCPP___ALGORITHM_RANGES_MAKE_HEAP_H | 
