diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2023-09-02 21:17:18 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-01-07 17:46:17 +0000 | 
| commit | fe013be447cd855ccaf6094a1d06aea570450629 (patch) | |
| tree | 9adc1e0a5d25b6280995832bb29d592fb80554a6 /contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h | |
| parent | 2f3b605b2e159522ecab77fd518e8139aaf581e9 (diff) | |
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h')
| -rw-r--r-- | contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h | 49 | 
1 files changed, 23 insertions, 26 deletions
diff --git a/contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h b/contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h index 607dd687a5de..a9453ed336f5 100644 --- a/contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h +++ b/contrib/llvm-project/libcxx/include/__algorithm/ranges_set_difference.h @@ -30,7 +30,7 @@  #  pragma GCC system_header  #endif -#if _LIBCPP_STD_VER > 17 +#if _LIBCPP_STD_VER >= 20  _LIBCPP_BEGIN_NAMESPACE_STD @@ -42,15 +42,14 @@ using set_difference_result = in_out_result<_InIter, _OutIter>;  namespace __set_difference {  struct __fn { -  template < -      input_iterator _InIter1, -      sentinel_for<_InIter1> _Sent1, -      input_iterator _InIter2, -      sentinel_for<_InIter2> _Sent2, -      weakly_incrementable _OutIter, -      class _Comp  = less, -      class _Proj1 = identity, -      class _Proj2 = identity> +  template <input_iterator _InIter1, +            sentinel_for<_InIter1> _Sent1, +            input_iterator _InIter2, +            sentinel_for<_InIter2> _Sent2, +            weakly_incrementable _OutIter, +            class _Comp  = less, +            class _Proj1 = identity, +            class _Proj2 = identity>      requires mergeable<_InIter1, _InIter2, _OutIter, _Comp, _Proj1, _Proj2>    _LIBCPP_HIDE_FROM_ABI constexpr set_difference_result<_InIter1, _OutIter> operator()(        _InIter1 __first1, @@ -66,22 +65,20 @@ struct __fn {      return {std::move(__ret.first), std::move(__ret.second)};    } -  template < -      input_range _Range1, -      input_range _Range2, -      weakly_incrementable _OutIter, -      class _Comp  = less, -      class _Proj1 = identity, -      class _Proj2 = identity> +  template <input_range _Range1, +            input_range _Range2, +            weakly_incrementable _OutIter, +            class _Comp  = less, +            class _Proj1 = identity, +            class _Proj2 = identity>      requires mergeable<iterator_t<_Range1>, iterator_t<_Range2>, _OutIter, _Comp, _Proj1, _Proj2>    _LIBCPP_HIDE_FROM_ABI constexpr set_difference_result<borrowed_iterator_t<_Range1>, _OutIter> -    operator()( -        _Range1&& __range1, -        _Range2&& __range2, -        _OutIter __result, -        _Comp __comp   = {}, -        _Proj1 __proj1 = {}, -        _Proj2 __proj2 = {}) const { +  operator()(_Range1&& __range1, +             _Range2&& __range2, +             _OutIter __result, +             _Comp __comp   = {}, +             _Proj1 __proj1 = {}, +             _Proj2 __proj2 = {}) const {      auto __ret = std::__set_difference<_RangeAlgPolicy>(          ranges::begin(__range1),          ranges::end(__range1), @@ -96,11 +93,11 @@ struct __fn {  } // namespace __set_difference  inline namespace __cpo { -  inline constexpr auto set_difference = __set_difference::__fn{}; +inline constexpr auto set_difference = __set_difference::__fn{};  } // namespace __cpo  } // namespace ranges  _LIBCPP_END_NAMESPACE_STD -#endif // _LIBCPP_STD_VER > 17 +#endif // _LIBCPP_STD_VER >= 20  #endif // _LIBCPP___ALGORITHM_RANGES_SET_DIFFERENCE_H  | 
