Home
last modified time | relevance | path

Searched refs:ranges (Results 1 – 25 of 2108) sorted by relevance

12345678910>>...85

/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/diagnostics/
Dranges.nodiscard_extensions.verify.cpp19 …std::ranges::adjacent_find(range); // expected-warning {{ignoring return value of function declare… in test()
20 …std::ranges::adjacent_find(iter, iter); // expected-warning {{ignoring return value of function de… in test()
21 …std::ranges::all_of(range, pred); // expected-warning {{ignoring return value of function declared… in test()
22 …std::ranges::all_of(iter, iter, pred); // expected-warning {{ignoring return value of function dec… in test()
23 …std::ranges::any_of(range, pred); // expected-warning {{ignoring return value of function declared… in test()
24 …std::ranges::any_of(iter, iter, pred); // expected-warning {{ignoring return value of function dec… in test()
25 …std::ranges::binary_search(range, 1); // expected-warning {{ignoring return value of function decl… in test()
26 …std::ranges::binary_search(iter, iter, 1); // expected-warning {{ignoring return value of function… in test()
27 …std::ranges::clamp(1, 2, 3); // expected-warning {{ignoring return value of function declared with… in test()
28 …std::ranges::count_if(range, pred); // expected-warning {{ignoring return value of function declar… in test()
[all …]
Dranges.nodiscard_extensions.compile.pass.cpp22 std::ranges::adjacent_find(range); in test()
23 std::ranges::adjacent_find(iter, iter); in test()
24 std::ranges::all_of(range, pred); in test()
25 std::ranges::all_of(iter, iter, pred); in test()
26 std::ranges::any_of(range, pred); in test()
27 std::ranges::any_of(iter, iter, pred); in test()
28 std::ranges::binary_search(range, 1); in test()
29 std::ranges::binary_search(iter, iter, 1); in test()
30 std::ranges::clamp(1, 2, 3); in test()
31 std::ranges::count_if(range, pred); in test()
[all …]
/external/cronet/base/ranges/
Dalgorithm_unittest.cc105 static_assert(ranges::all_of(array + 1, array + 6, is_non_zero), ""); in TEST()
106 static_assert(!ranges::all_of(array, is_non_zero), ""); in TEST()
110 ranges::all_of(values + 1, ranges::end(values), is_non_zero, &Int::value), in TEST()
112 static_assert(!ranges::all_of(values, is_non_zero, &Int::value), ""); in TEST()
118 static_assert(!ranges::any_of(array + 5, array + 6, is_even), ""); in TEST()
119 static_assert(ranges::any_of(array, is_even), ""); in TEST()
123 !ranges::any_of(values + 3, ranges::end(values), is_even, &Int::value), in TEST()
125 static_assert(ranges::any_of(values, is_even, &Int::value), ""); in TEST()
136 static_assert(ranges::none_of(array + 1, array + 6, is_zero), ""); in TEST()
137 static_assert(!ranges::none_of(array, is_zero), ""); in TEST()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.req/range.refinements/
Dviewable_range.compile.pass.cpp31 static_assert(!std::ranges::range<T1>);
33 static_assert(!std::ranges::viewable_range<T1>);
34 static_assert(!std::ranges::viewable_range<T1&>);
35 static_assert(!std::ranges::viewable_range<T1&&>);
36 static_assert(!std::ranges::viewable_range<T1 const>);
37 static_assert(!std::ranges::viewable_range<T1 const&>);
38 static_assert(!std::ranges::viewable_range<T1 const&&>);
41 struct T2 : test_range<cpp20_input_iterator>, std::ranges::view_base {
44 static_assert(std::ranges::range<T2>);
45 static_assert(std::ranges::view<T2>);
[all …]
Dcommon_range.compile.pass.cpp22 static_assert(!std::ranges::common_range<Common<cpp17_input_iterator<int*>>>); // not a sentinel fo…
23 static_assert(!std::ranges::common_range<Common<cpp20_input_iterator<int*>>>); // not a sentinel fo…
24 static_assert( std::ranges::common_range<Common<forward_iterator<int*>>>);
25 static_assert( std::ranges::common_range<Common<bidirectional_iterator<int*>>>);
26 static_assert( std::ranges::common_range<Common<random_access_iterator<int*>>>);
27 static_assert( std::ranges::common_range<Common<contiguous_iterator<int*>>>);
28 static_assert( std::ranges::common_range<Common<int*>>);
30 static_assert(!std::ranges::common_range<NonCommon<cpp17_input_iterator<int*>>>);
31 static_assert(!std::ranges::common_range<NonCommon<cpp20_input_iterator<int*>>>);
32 static_assert(!std::ranges::common_range<NonCommon<forward_iterator<int*>>>);
[all …]
Dcontiguous_range.compile.pass.cpp19 namespace ranges = std::ranges;
23 constexpr bool result = ranges::contiguous_range<test_range<I> >; in check_range()
24 static_assert(ranges::contiguous_range<test_range<I> const> == result); in check_range()
25 static_assert(ranges::contiguous_range<test_non_const_common_range<I> > == result); in check_range()
26 static_assert(ranges::contiguous_range<test_non_const_range<I> > == result); in check_range()
27 static_assert(ranges::contiguous_range<test_common_range<I> > == result); in check_range()
28 static_assert(ranges::contiguous_range<test_common_range<I> const> == result); in check_range()
29 static_assert(!ranges::contiguous_range<test_non_const_common_range<I> const>); in check_range()
30 static_assert(!ranges::contiguous_range<test_non_const_range<I> const>); in check_range()
47 static_assert( std::ranges::contiguous_range<ContiguousWhenNonConst>);
[all …]
Dinput_range.compile.pass.cpp19 static_assert(std::ranges::input_range<test_range<cpp17_input_iterator> >);
20 static_assert(std::ranges::input_range<test_range<cpp17_input_iterator> const>);
22 static_assert(std::ranges::input_range<test_range<cpp20_input_iterator> >);
23 static_assert(std::ranges::input_range<test_range<cpp20_input_iterator> const>);
25 static_assert(std::ranges::input_range<test_non_const_range<cpp17_input_iterator> >);
26 static_assert(std::ranges::input_range<test_non_const_range<cpp20_input_iterator> >);
28 static_assert(!std::ranges::input_range<test_non_const_range<cpp17_input_iterator> const>);
29 static_assert(!std::ranges::input_range<test_non_const_range<cpp20_input_iterator> const>);
31 static_assert(std::ranges::input_range<test_common_range<forward_iterator> >);
32 static_assert(!std::ranges::input_range<test_common_range<cpp20_input_iterator> >);
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/library/description/conventions/customization.point.object/
Dniebloid.compile.pass.cpp62 static_assert(test(std::ranges::adjacent_find, a));
63 static_assert(test(std::ranges::all_of, a, odd));
64 static_assert(test(std::ranges::any_of, a, odd));
65 static_assert(test(std::ranges::binary_search, a, 42));
66 static_assert(test(std::ranges::clamp, 42, 42, 42));
67 static_assert(test(std::ranges::copy, a, a));
68 static_assert(test(std::ranges::copy_backward, a, a));
69 static_assert(test(std::ranges::copy_if, a, a, odd));
70 static_assert(test(std::ranges::copy_n, a, 10, a));
71 static_assert(test(std::ranges::count, a, 42));
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.req/range.view/
Denable_view.compile.pass.cpp22 static_assert(!std::ranges::enable_view<Empty>);
23 static_assert(!std::ranges::enable_view<Empty&>);
24 static_assert(!std::ranges::enable_view<Empty&&>);
25 static_assert(!std::ranges::enable_view<const Empty>);
26 static_assert(!std::ranges::enable_view<const Empty&>);
27 static_assert(!std::ranges::enable_view<const Empty&&>);
30 struct PrivateViewBase : private std::ranges::view_base { };
31 static_assert(!std::ranges::enable_view<PrivateViewBase>);
32 static_assert(!std::ranges::enable_view<PrivateViewBase&>);
33 static_assert(!std::ranges::enable_view<PrivateViewBase&&>);
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.lazy.split/
Dconstraints.compile.pass.cpp27 static_assert( std::ranges::forward_range<ForwardRange>);
31 typename std::ranges::lazy_split_view<View, Pattern>;
39 static_assert( std::ranges::forward_range<View>);
40 static_assert( std::ranges::forward_range<Pattern>);
41 static_assert( std::ranges::view<View>);
42 static_assert( std::ranges::view<Pattern>);
44 std::ranges::iterator_t<View>, std::ranges::iterator_t<Pattern>, std::ranges::equal_to>);
54 static_assert( std::ranges::input_range<View>);
55 static_assert( std::ranges::forward_range<Pattern>);
56 static_assert( std::ranges::view<View>);
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/
Dranges_robust_against_dangling.pass.cpp44 template <class ExpectedT = std::ranges::dangling, class Func, std::ranges::range Input, class ...A…
51 template <class ExpectedT = std::ranges::dangling, class Func, std::ranges::range Input, class ...A…
58 template <class ExpectedT = std::ranges::dangling, class Func, std::ranges::range Input, class ...A…
68 using std::ranges::dangling; in test_all()
70 using std::ranges::binary_transform_result; in test_all()
71 using std::ranges::copy_result; in test_all()
72 using std::ranges::copy_backward_result; in test_all()
73 using std::ranges::copy_if_result; in test_all()
74 using std::ranges::for_each_result; in test_all()
75 using std::ranges::merge_result; in test_all()
[all …]
Dranges_robust_against_proxy_iterators.pass.cpp30 template <class Func, std::ranges::range Input, class ...Args>
37 template <class Func, std::ranges::range Range1, std::ranges::range Range2, class ...Args>
44 template <class Func, std::ranges::range Input, class ...Args>
45 constexpr void test_mid(Func&& func, Input& in, std::ranges::iterator_t<Input> mid, Args&& ...args)… in test_mid()
74 test(std::ranges::any_of, in, unary_pred); in run_tests()
75 test(std::ranges::all_of, in, unary_pred); in run_tests()
76 test(std::ranges::none_of, in, unary_pred); in run_tests()
77 test(std::ranges::find, in, x); in run_tests()
78 test(std::ranges::find_if, in, unary_pred); in run_tests()
79 test(std::ranges::find_if_not, in, unary_pred); in run_tests()
[all …]
Dranges_robust_against_nonbool_predicates.pass.cpp37 template <class Func, std::ranges::range Input, class... Args>
44 template <class Func, std::ranges::range Input, class... Args>
51 template <class Func, std::ranges::range Input, class... Args>
52 constexpr void test_mid(Func&& func, Input& in, std::ranges::iterator_t<Input> mid, Args&&... args)… in test_mid()
69 test(std::ranges::any_of, in, unary_pred); in test_all()
70 test(std::ranges::all_of, in, unary_pred); in test_all()
71 test(std::ranges::none_of, in, unary_pred); in test_all()
72 test(std::ranges::find_if, in, unary_pred); in test_all()
73 test(std::ranges::find_if_not, in, unary_pred); in test_all()
74 test(std::ranges::find_first_of, in, in2, binary_pred); in test_all()
[all …]
Dranges_robust_against_omitting_invoke.pass.cpp38 template <class Func, std::ranges::range Input, class... Args>
45 template <class Func, std::ranges::range Input, class... Args>
52 template <class Func, std::ranges::range Input, class... Args>
53 constexpr void test_mid(Func&& func, Input& in, std::ranges::iterator_t<Input> mid, Args&&... args)… in test_mid()
74 test(std::ranges::any_of, in, &Foo::unary_pred, &Bar::val); in test_all()
75 test(std::ranges::all_of, in, &Foo::unary_pred, &Bar::val); in test_all()
76 test(std::ranges::none_of, in, &Foo::unary_pred, &Bar::val); in test_all()
77 test(std::ranges::find, in, x, &Bar::val); in test_all()
78 test(std::ranges::find_if, in, &Foo::unary_pred, &Bar::val); in test_all()
79 test(std::ranges::find_if_not, in, &Foo::unary_pred, &Bar::val); in test_all()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/algorithms/
Dranges_robust_against_copying_comparators.pass.cpp92 (void)std::ranges::adjacent_find(first, last, Equal(&copies)); assert(copies == 0); in all_the_algorithms()
93 (void)std::ranges::adjacent_find(a, Equal(&copies)); assert(copies == 0); in all_the_algorithms()
94 (void)std::ranges::all_of(first, last, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms()
95 (void)std::ranges::all_of(a, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms()
96 (void)std::ranges::any_of(first, last, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms()
97 (void)std::ranges::any_of(a, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms()
98 (void)std::ranges::binary_search(first, last, value, Less(&copies)); assert(copies == 0); in all_the_algorithms()
99 (void)std::ranges::binary_search(a, value, Less(&copies)); assert(copies == 0); in all_the_algorithms()
100 (void)std::ranges::clamp(value, value, value, Less(&copies)); assert(copies == 0); in all_the_algorithms()
101 (void)std::ranges::count_if(first, last, UnaryTrue(&copies)); assert(copies == 0); in all_the_algorithms()
[all …]
Dranges_robust_against_copying_projections.pass.cpp74 (void)std::ranges::adjacent_find(first, last, Equal(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
75 (void)std::ranges::adjacent_find(a, Equal(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
76 (void)std::ranges::all_of(first, last, UnaryTrue(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
77 (void)std::ranges::all_of(a, UnaryTrue(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
78 (void)std::ranges::any_of(first, last, UnaryTrue(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
79 (void)std::ranges::any_of(a, UnaryTrue(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
80 … (void)std::ranges::binary_search(first, last, value, Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
81 (void)std::ranges::binary_search(a, value, Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
82 (void)std::ranges::clamp(T(), T(), T(), Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
83 (void)std::ranges::count(first, last, value, Proj(&copies)); assert(copies == 0); in all_the_algorithms()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/algorithms/algorithms.results/
Din_out_out_result.pass.cpp24 static_assert(!std::is_constructible_v<std::ranges::in_out_out_result<A, A, A>, std::ranges::in_out…
30 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, std::ranges::in_out_…
31 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, std::ranges::in_out_…
32 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, const std::ranges::i…
33 static_assert(std::is_constructible_v<std::ranges::in_out_out_result<B, B, B>, const std::ranges::i…
38 static_assert(!std::is_constructible_v<std::ranges::in_out_out_result<C, C, C>, std::ranges::in_out…
41 static_assert(std::is_convertible_v<std::ranges::in_out_out_result<int, int, int>&, std::ranges::in…
42 static_assert(std::is_convertible_v<const std::ranges::in_out_out_result<int, int, int>&, std::rang…
43 static_assert(std::is_convertible_v<std::ranges::in_out_out_result<int, int, int>&&, std::ranges::i…
44 static_assert(std::is_convertible_v<const std::ranges::in_out_out_result<int, int, int>&&, std::ran…
[all …]
Din_in_out_result.pass.cpp24 static_assert(!std::is_constructible_v<std::ranges::in_in_out_result<A, A, A>,
25 std::ranges::in_in_out_result<int, int, int>>);
31 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, std::ranges::in_in_ou…
32 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, std::ranges::in_in_ou…
33 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, const std::ranges::in…
34 static_assert(std::is_constructible_v<std::ranges::in_in_out_result<B, B, B>, const std::ranges::in…
39 static_assert(!std::is_constructible_v<std::ranges::in_in_out_result<C, C, C>, std::ranges::in_in_o…
42 static_assert(std::is_convertible_v<std::ranges::in_in_out_result<int, int, int>&, std::ranges::in_…
43 static_assert(std::is_convertible_v<const std::ranges::in_in_out_result<int, int, int>&, std::range…
44 static_assert(std::is_convertible_v<std::ranges::in_in_out_result<int, int, int>&&, std::ranges::in…
[all …]
Dno_unique_address.compile.pass.cpp26 static_assert(sizeof(std::ranges::in_fun_result<Empty, int>) == sizeof(int));
27 static_assert(sizeof(std::ranges::in_fun_result<int, Empty>) == sizeof(int));
28 static_assert(sizeof(std::ranges::in_fun_result<Empty, Empty>) == 2);
30 static_assert(sizeof(std::ranges::in_in_result<Empty, int>) == sizeof(int));
31 static_assert(sizeof(std::ranges::in_in_result<int, Empty>) == sizeof(int));
32 static_assert(sizeof(std::ranges::in_in_result<Empty, Empty>) == 2);
34 static_assert(sizeof(std::ranges::in_out_result<Empty, int>) == sizeof(int));
35 static_assert(sizeof(std::ranges::in_out_result<int, Empty>) == sizeof(int));
36 static_assert(sizeof(std::ranges::in_out_result<Empty, Empty2>) == sizeof(char));
38 static_assert(sizeof(std::ranges::in_in_out_result<Empty, int, int>) == 2 * sizeof(int));
[all …]
Din_fun_result.pass.cpp25 static_assert(!std::is_constructible_v<std::ranges::in_fun_result<A, A>, std::ranges::in_fun_result…
31 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, std::ranges::in_fun_result<…
32 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, std::ranges::in_fun_result<…
33 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, const std::ranges::in_fun_r…
34 static_assert(std::is_constructible_v<std::ranges::in_fun_result<B, B>, const std::ranges::in_fun_r…
39 static_assert(!std::is_constructible_v<std::ranges::in_fun_result<C, C>, std::ranges::in_fun_result…
42 static_assert(std::is_convertible_v<std::ranges::in_fun_result<int, int>&, std::ranges::in_fun_resu…
43 static_assert(std::is_convertible_v<const std::ranges::in_fun_result<int, int>&, std::ranges::in_fu…
44 static_assert(std::is_convertible_v<std::ranges::in_fun_result<int, int>&&, std::ranges::in_fun_res…
45 static_assert(std::is_convertible_v<const std::ranges::in_fun_result<int, int>&&, std::ranges::in_f…
[all …]
Din_in_result.pass.cpp24 static_assert(!std::is_constructible_v<std::ranges::in_in_result<A, A>, std::ranges::in_in_result<i…
30 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, std::ranges::in_in_result<in…
31 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, std::ranges::in_in_result<in…
32 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, const std::ranges::in_in_res…
33 static_assert(std::is_constructible_v<std::ranges::in_in_result<B, B>, const std::ranges::in_in_res…
38 static_assert(!std::is_constructible_v<std::ranges::in_in_result<C, C>, std::ranges::in_in_result<i…
41 static_assert(std::is_convertible_v<std::ranges::in_in_result<int, int>&, std::ranges::in_in_result…
42 static_assert(std::is_convertible_v<const std::ranges::in_in_result<int, int>&, std::ranges::in_in_…
43 static_assert(std::is_convertible_v<std::ranges::in_in_result<int, int>&&, std::ranges::in_in_resul…
44 static_assert(std::is_convertible_v<const std::ranges::in_in_result<int, int>&&, std::ranges::in_in…
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/ranges/range.adaptors/range.lazy.split/
Dno_unique_address.compile.pass.cpp31 using SplitView = std::ranges::lazy_split_view<std::string_view, std::string_view>;
44 struct InputView : std::ranges::view_base {
49 static_assert( std::ranges::input_range<InputView>);
50 static_assert(!std::ranges::forward_range<InputView>);
51 static_assert( std::ranges::view<InputView>);
53 struct TinyView : std::ranges::view_base {
59 static_assert( std::ranges::forward_range<TinyView>);
60 static_assert( std::ranges::__tiny_range<TinyView>);
61 static_assert( std::ranges::view<TinyView>);
63 using SplitView = std::ranges::lazy_split_view<InputView, TinyView>;
[all …]
/external/rust/crates/regex-syntax/src/hir/
Dinterval.rs37 ranges: Vec<I>, field
47 let mut set = IntervalSet { ranges: intervals.into_iter().collect() }; in new()
56 self.ranges.push(interval); in push()
64 IntervalSetIter(self.ranges.iter()) in iter()
71 &self.ranges in intervals()
82 let len = self.ranges.len(); in case_fold_simple()
84 let range = self.ranges[i]; in case_fold_simple()
85 if let Err(err) = range.case_fold_simple(&mut self.ranges) { in case_fold_simple()
97 self.ranges.extend(&other.ranges); in union()
103 if self.ranges.is_empty() { in intersect()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.distance/
Diterator_sentinel.pass.cpp31 assert(std::ranges::distance(first, last) == 0); in test_unsized()
32 assert(std::ranges::distance(It(a), last) == 0); in test_unsized()
33 assert(std::ranges::distance(first, Sent(It(a))) == 0); in test_unsized()
34 assert(std::ranges::distance(It(a), Sent(It(a))) == 0); in test_unsized()
35 … ASSERT_SAME_TYPE(decltype(std::ranges::distance(It(a), Sent(It(a)))), std::iter_difference_t<It>); in test_unsized()
40 assert(std::ranges::distance(first, last) == 3); in test_unsized()
43 assert(std::ranges::distance(static_cast<It&>(first), static_cast<Sent&>(last)) == 3); in test_unsized()
44 assert(std::ranges::distance(static_cast<It&>(first), static_cast<Sent&&>(last)) == 3); in test_unsized()
45 assert(std::ranges::distance(static_cast<It&>(first), static_cast<const Sent&>(last)) == 3); in test_unsized()
46 assert(std::ranges::distance(static_cast<It&>(first), static_cast<const Sent&&>(last)) == 3); in test_unsized()
[all …]
/external/cronet/buildtools/third_party/libc++/trunk/test/std/ranges/range.adaptors/range.join.view/
Dend.pass.cpp46 struct ConstNotRange : std::ranges::view_base {
59 std::ranges::join_view jv(outer); in test()
60 assert(jv.end() == std::ranges::next(jv.begin(), 16)); in test()
61 assert(std::as_const(jv).end() == std::ranges::next(std::as_const(jv).begin(), 16)); in test()
65 static_assert(std::ranges::common_range<decltype(jv)>); in test()
66 static_assert(std::ranges::common_range<const decltype(jv)>); in test()
74 std::ranges::join_view jv(outer); in test()
75 assert(jv.end() == std::ranges::next(jv.begin(), 12)); in test()
76 assert(std::as_const(jv).end() == std::ranges::next(std::as_const(jv).begin(), 12)); in test()
80 static_assert(!std::ranges::common_range<decltype(jv)>); in test()
[all …]

12345678910>>...85