1 //===----------------------------------------------------------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef _LIBCPP___ALGORITHM_RANGES_INCLUDES_H 10 #define _LIBCPP___ALGORITHM_RANGES_INCLUDES_H 11 12 #include <__algorithm/make_projected.h> 13 #include <__algorithm/includes.h> 14 #include <__config> 15 #include <__functional/identity.h> 16 #include <__functional/invoke.h> 17 #include <__functional/ranges_operations.h> 18 #include <__iterator/concepts.h> 19 #include <__iterator/iterator_traits.h> 20 #include <__iterator/projected.h> 21 #include <__ranges/access.h> 22 #include <__ranges/concepts.h> 23 #include <__ranges/dangling.h> 24 #include <__utility/forward.h> 25 #include <__utility/move.h> 26 27 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 28 # pragma GCC system_header 29 #endif 30 31 #if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) 32 33 _LIBCPP_BEGIN_NAMESPACE_STD 34 35 namespace ranges { 36 namespace __includes { 37 38 struct __fn { 39 40 template <input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, 41 class _Proj1 = identity, class _Proj2 = identity, 42 indirect_strict_weak_order<projected<_Iter1, _Proj1>, projected<_Iter2, _Proj2>> _Comp = ranges::less> 43 _LIBCPP_HIDE_FROM_ABI constexpr 44 bool operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Comp __comp = {}, 45 _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { 46 // TODO: implement 47 (void)__first1; (void)__last1; (void)__first2; (void)__last2; (void)__comp; (void)__proj1; (void)__proj2; 48 return {}; 49 } 50 51 template <input_range _Range1, input_range _Range2, class _Proj1 = identity, class _Proj2 = identity, 52 indirect_strict_weak_order<projected<iterator_t<_Range1>, _Proj1>, 53 projected<iterator_t<_Range2>, _Proj2>> _Comp = ranges::less> 54 _LIBCPP_HIDE_FROM_ABI constexpr 55 bool operator()(_Range1&& __range1, _Range2&& __range2, _Comp __comp = {}, 56 _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { 57 // TODO: implement 58 (void)__range1; (void)__range2; (void)__comp; (void)__proj1; (void)__proj2; 59 return {}; 60 } 61 62 }; 63 64 } // namespace __includes 65 66 inline namespace __cpo { 67 inline constexpr auto includes = __includes::__fn{}; 68 } // namespace __cpo 69 } // namespace ranges 70 71 _LIBCPP_END_NAMESPACE_STD 72 73 #endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) 74 75 #endif // _LIBCPP___ALGORITHM_RANGES_INCLUDES_H 76