Home
last modified time | relevance | path

Searched refs:Iter (Results 1 – 25 of 437) sorted by relevance

12345678910>>...18

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.search/
H A Dsearch_n.pass.cpp39 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 0) == Iter(ia)); in test()
40 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 0) == Iter(ia+0)); in test()
41 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 0) == Iter(ia+sa)); in test()
43 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 3) == Iter(ia)); in test()
44 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 3) == Iter(ia+3)); in test()
45 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 3) == Iter(ia+sa)); in test()
47 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 5) == Iter(ia)); in test()
48 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 5) == Iter(ia+5)); in test()
54 assert(std::search_n(Iter(ib), Iter(ib+sb), 0, 0) == Iter(ib)); in test()
59 assert(std::search_n(Iter(ib), Iter(ib+sb), 0, 1) == Iter(ib)); in test()
[all …]
H A Dsearch_n_pred.pass.cpp53 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 0, count_equal()) == Iter(ia)); in test()
56 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 0, count_equal()) == Iter(ia+0)); in test()
59 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 0, count_equal()) == Iter(ia+sa)); in test()
62 assert(std::search_n(Iter(ia), Iter(ia+sa), sa, 0, count_equal()) == Iter(ia+sa)); in test()
65 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 3, count_equal()) == Iter(ia)); in test()
68 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 3, count_equal()) == Iter(ia+3)); in test()
71 assert(std::search_n(Iter(ia), Iter(ia+sa), 2, 3, count_equal()) == Iter(ia+sa)); in test()
77 assert(std::search_n(Iter(ia), Iter(ia+sa), 0, 5, count_equal()) == Iter(ia)); in test()
80 assert(std::search_n(Iter(ia), Iter(ia+sa), 1, 5, count_equal()) == Iter(ia+5)); in test()
92 assert(std::search_n(Iter(ib), Iter(ib+sb), 0, 0, count_equal()) == Iter(ib)); in test()
[all …]
H A Dranges.search_n.pass.cpp58 template <class Iter, class Sent = Iter>
64 std::ranges::search_n(Iter(a), Sent(Iter(a + 6)), 1, 3); in test_iterators()
70 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 6))); in test_iterators()
86 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 6))); in test_iterators()
102 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
118 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
134 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 4))); in test_iterators()
150 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 3))); in test_iterators()
182 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a))); in test_iterators()
208 auto ret = std::ranges::search_n(Iter(a), Sent(Iter(a + 6)), in test_iterators()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/is.sorted/
H A Dis_sorted_until.pass.cpp38 assert(std::is_sorted_until(Iter(a), Iter(a)) == Iter(a)); in test()
39 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test()
45 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test()
50 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test()
55 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+1)); in test()
60 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test()
66 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test()
71 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+sa)); in test()
76 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+2)); in test()
86 assert(std::is_sorted_until(Iter(a), Iter(a+sa)) == Iter(a+1)); in test()
[all …]
H A Dis_sorted_until_comp.pass.cpp39 assert(std::is_sorted_until(Iter(a), Iter(a), std::greater<int>()) == Iter(a)); in test()
40 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test()
46 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test()
51 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test()
56 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test()
61 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test()
67 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test()
72 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+2)); in test()
77 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test()
82 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test()
[all …]
H A Dis_sorted.pass.cpp38 assert(std::is_sorted(Iter(a), Iter(a))); in test()
39 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
45 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
50 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
55 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test()
60 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
66 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
71 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
76 assert(!std::is_sorted(Iter(a), Iter(a+sa))); in test()
81 assert(std::is_sorted(Iter(a), Iter(a+sa))); in test()
[all …]
H A Dis_sorted_comp.pass.cpp32 template <class Iter>
39 assert(std::is_sorted(Iter(a), Iter(a))); in test()
40 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
46 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
51 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
56 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
61 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
67 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
72 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
87 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test()
[all …]
H A Dranges.is_sorted.pass.cpp31 template <class Iter, class Sent = Iter>
53 template <class Iter, class Sent = Iter>
63 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
72 auto ret = std::ranges::is_sorted(Iter(a), Sent(Iter(a + 5))); in test_iterators()
77 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
86 auto ret = std::ranges::is_sorted(Iter(a), Sent(Iter(a + 5))); in test_iterators()
91 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
105 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 4))); in test_iterators()
114 auto ret = std::ranges::is_sorted(Iter(a), Sent(Iter(a))); in test_iterators()
119 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a))); in test_iterators()
[all …]
H A Dranges.is_sorted_until.pass.cpp32 template <class Iter, class Sent = Iter>
54 template <class Iter, class Sent = Iter>
59 std::same_as<Iter> auto ret = std::ranges::is_sorted_until(Iter(a), Sent(Iter(a + 5))); in test_iterators()
64 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
73 auto ret = std::ranges::is_sorted_until(Iter(a), Sent(Iter(a + 5))); in test_iterators()
78 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
92 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
106 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 4))); in test_iterators()
115 auto ret = std::ranges::is_sorted_until(Iter(a), Sent(Iter(a))); in test_iterators()
120 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a))); in test_iterators()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/iterators/bounded_iter/
H A Darithmetic.pass.cpp28 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests()
35 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests()
42 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b + 3), Iter(b), Iter(e)); in tests()
49 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b + 3), Iter(b), Iter(e)); in tests()
56 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests()
63 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests()
70 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests()
77 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b + 3), Iter(b), Iter(e)); in tests()
84 std::__bounded_iter<Iter> iter = std::__make_bounded_iter(Iter(b + 3), Iter(b), Iter(e)); in tests()
91 std::__bounded_iter<Iter> iter1 = std::__make_bounded_iter(Iter(b), Iter(b), Iter(e)); in tests()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
H A Drotate.pass.cpp28 Iter r = std::rotate(Iter(ia), Iter(ia), Iter(ia)); in test()
31 r = std::rotate(Iter(ia), Iter(ia), Iter(ia+sa)); in test()
34 r = std::rotate(Iter(ia), Iter(ia+sa), Iter(ia+sa)); in test()
40 r = std::rotate(Iter(ib), Iter(ib), Iter(ib+sb)); in test()
44 r = std::rotate(Iter(ib), Iter(ib+1), Iter(ib+sb)); in test()
48 r = std::rotate(Iter(ib), Iter(ib+sb), Iter(ib+sb)); in test()
55 r = std::rotate(Iter(ic), Iter(ic), Iter(ic+sc)); in test()
60 r = std::rotate(Iter(ic), Iter(ic+1), Iter(ic+sc)); in test()
65 r = std::rotate(Iter(ic), Iter(ic+2), Iter(ic+sc)); in test()
78 r = std::rotate(Iter(id), Iter(id), Iter(id+sd)); in test()
[all …]
H A Dranges.rotate_copy.pass.cpp31 template <class Iter, class Out = int*, class Sent = sentinel_wrapper<Iter>>
54 template <class Iter, class OutIter, class Sent, int N>
59 std::ranges::rotate_copy(Iter(value.data()), in test()
69 auto range = std::ranges::subrange(Iter(value.data()), Sent(Iter(value.data() + value.size()))); in test()
78 template <class Iter, class OutIter, class Sent>
84 test<Iter, OutIter, Sent, 0>({}, 0, {}); in test_iterators()
87 test<Iter, OutIter, Sent, 1>({1}, 0, {1}); in test_iterators()
90 test<Iter, OutIter, Sent, 2>({1, 2}, 1, {2, 1}); in test_iterators()
105 template <class Iter, class Sent = Iter>
108 test_iterators<Iter, forward_iterator<int*>, Sent>(); in test_out_iterators()
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.factories/range.iota.view/iterator/
H A Dmember_typedefs.compile.pass.cpp67 using Iter = decltype(io.begin()); in test() typedef
70 static_assert(std::same_as<Iter::value_type, char>); in test()
77 using Iter = decltype(io.begin()); in test() typedef
87 using Iter = decltype(io.begin()); in test() typedef
102 using Iter = decltype(io.begin()); in test() typedef
113 using Iter = decltype(io.begin()); in test() typedef
125 using Iter = decltype(io.begin()); in test() typedef
133 using Iter = decltype(io.begin()); in test() typedef
141 using Iter = decltype(io.begin()); in test() typedef
149 using Iter = decltype(io.begin()); in test() typedef
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.zip/iterator/
H A Dmember_types.compile.pass.cpp72 using Iter = decltype(v.begin()); in test() typedef
78 static_assert(HasIterCategory<Iter>); in test()
84 using Iter = decltype(v.begin()); in test() typedef
90 static_assert(HasIterCategory<Iter>); in test()
96 using Iter = decltype(v.begin()); in test() typedef
119 using Iter = decltype(v2.begin()); in test() typedef
141 using Iter = decltype(v.begin()); in test() typedef
148 using Iter = decltype(v.begin()); in test() typedef
157 using Iter = decltype(v.begin()); in test() typedef
164 using Iter = decltype(v.begin()); in test() typedef
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.shift/
H A Dshift_right.pass.cpp34 Iter it = std::shift_right(Iter(work), Iter(work+n), k); in test()
49 Iter b = Iter(std::begin(input)); in test()
50 Iter e = Iter(std::end(input)); in test()
59 Iter b = Iter(std::begin(input)); in test()
60 Iter e = Iter(std::end(input)); in test()
67 Iter b = Iter(std::begin(input)); in test()
68 Iter e = Iter(std::end(input)); in test()
75 Iter b = Iter(std::begin(input)); in test()
76 Iter e = Iter(std::end(input)); in test()
86 Iter e = Iter(std::end(input)); in test()
[all …]
H A Dshift_left.pass.cpp34 Iter it = std::shift_left(Iter(work), Iter(work+n), k); in test()
49 Iter b = Iter(std::begin(input)); in test()
50 Iter e = Iter(std::end(input)); in test()
60 Iter b = Iter(std::begin(input)); in test()
61 Iter e = Iter(std::end(input)); in test()
68 Iter b = Iter(std::begin(input)); in test()
69 Iter e = Iter(std::end(input)); in test()
76 Iter b = Iter(std::begin(input)); in test()
77 Iter e = Iter(std::end(input)); in test()
87 Iter e = Iter(std::end(input)); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/transform.reduce/
H A Dtransform_reduce_iter_iter_init_bop_uop.pass.cpp54 template <class Iter>
61 test(Iter(ia), Iter(ia), 0, std::plus<>(), identity(), 0); in test()
62 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), identity(), 1); in test()
63 test(Iter(ia), Iter(ia+1), 0, std::multiplies<>(), identity(), 0); in test()
70 test(Iter(ia), Iter(ia), 0, std::plus<>(), twice(), 0); in test()
71 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), twice(), 1); in test()
72 test(Iter(ia), Iter(ia+1), 0, std::multiplies<>(), twice(), 0); in test()
73 test(Iter(ia), Iter(ia+1), 2, std::plus<>(), twice(), 4); in test()
74 test(Iter(ia), Iter(ia+2), 0, std::plus<>(), twice(), 6); in test()
75 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), twice(), 24); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/accumulate/
H A Daccumulate.pass.cpp24 template <class Iter, class T>
26 test(Iter first, Iter last, T init, T x) in test()
31 template <class Iter>
37 test(Iter(ia), Iter(ia), 0, 0); in test()
38 test(Iter(ia), Iter(ia), 10, 10); in test()
39 test(Iter(ia), Iter(ia+1), 0, 1); in test()
40 test(Iter(ia), Iter(ia+1), 10, 11); in test()
41 test(Iter(ia), Iter(ia+2), 0, 3); in test()
42 test(Iter(ia), Iter(ia+2), 10, 13); in test()
43 test(Iter(ia), Iter(ia+sa), 0, 21); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.merge/
H A Dinplace_merge.pass.cpp48 template <class Iter>
60 std::inplace_merge(Iter(ia), Iter(ia+M), Iter(ia+N)); in test_one()
70 template <class Iter>
74 test_one<Iter>(N, 0); in test()
78 test_one<Iter>(N, N); in test()
81 template <class Iter>
85 test_one<Iter>(0, 0); in test()
86 test_one<Iter>(1, 0); in test()
95 test<Iter>(4); in test()
96 test<Iter>(100); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.join.view/iterator/
H A Dmember_types.compile.pass.cpp57 using Iter = std::ranges::iterator_t<decltype(jv)>; in test() typedef
62 static_assert(std::is_same_v<Iter::value_type, int>); in test()
63 static_assert(HasIterCategory<Iter>); in test()
72 static_assert(std::is_same_v<Iter::value_type, int>); in test()
73 static_assert(HasIterCategory<Iter>); in test()
80 static_assert(!HasIterCategory<Iter>); in test()
82 static_assert(std::is_same_v<Iter::value_type, int>); in test()
89 using Iter = std::ranges::iterator_t<std::ranges::join_view<Base>>; in test() typedef
92 static_assert(HasIterCategory<Iter>); in test()
94 static_assert(std::is_same_v<Iter::value_type, int>); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.partitions/
H A Dranges.is_partitioned.pass.cpp32 template <class Iter, class Sent = sentinel_wrapper<Iter>>
74 template <class Iter, class Sent = Iter>
80 std::ranges::is_partitioned(Iter(a), Sent(Iter(a + 5)), [](int i) { return i < 3; }); in test_iterators()
85 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 5))); in test_iterators()
99 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 4))); in test_iterators()
113 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 4))); in test_iterators()
127 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 4))); in test_iterators()
141 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a))); in test_iterators()
155 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 1))); in test_iterators()
169 auto range = std::ranges::subrange(Iter(a), Sent(Iter(a + 3))); in test_iterators()
[all …]
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/reduce/
H A Dreduce_init.pass.cpp23 template <class Iter, class T>
25 test(Iter first, Iter last, T init, T x) in test()
31 template <class Iter>
37 test(Iter(ia), Iter(ia), 0, 0); in test()
38 test(Iter(ia), Iter(ia), 1, 1); in test()
39 test(Iter(ia), Iter(ia+1), 0, 1); in test()
40 test(Iter(ia), Iter(ia+1), 2, 3); in test()
41 test(Iter(ia), Iter(ia+2), 0, 3); in test()
42 test(Iter(ia), Iter(ia+2), 3, 6); in test()
43 test(Iter(ia), Iter(ia+sa), 0, 21); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/
H A Dunique.pass.cpp43 Iter r = std::unique(Iter(ia), Iter(ia+sa)); in test()
49 r = std::unique(Iter(ib), Iter(ib+sb)); in test()
56 r = std::unique(Iter(ic), Iter(ic+sc)); in test()
62 r = std::unique(Iter(id), Iter(id+sd)); in test()
69 r = std::unique(Iter(ie), Iter(ie+se)); in test()
77 r = std::unique(Iter(ig), Iter(ig+sg)); in test()
84 r = std::unique(Iter(ih), Iter(ih+sh)); in test()
91 r = std::unique(Iter(ii), Iter(ii+si)); in test()
115 Iter r = std::unique(Iter(ia), Iter(ia+sa)); in test1()
122 r = std::unique(Iter(ib), Iter(ib+sb)); in test1()
[all …]
/llvm-project-15.0.7/libcxx/test/std/iterators/predef.iterators/counted.iterator/
H A Dmember_types.compile.pass.cpp38 using Iter = std::counted_iterator<InputOrOutputArchetype>; in test() typedef
40 static_assert(!HasValueType<Iter>); in test()
41 static_assert(std::same_as<Iter::difference_type, int>); in test()
42 static_assert(!HasIteratorConcept<Iter>); in test()
43 static_assert(!HasIteratorCategory<Iter>); in test()
46 using Iter = std::counted_iterator<cpp20_input_iterator<int*>>; in test() typedef
48 static_assert(std::same_as<Iter::value_type, int>); in test()
51 static_assert(!HasIteratorCategory<Iter>); in test()
54 using Iter = std::counted_iterator<random_access_iterator<int*>>; in test() typedef
56 static_assert(std::same_as<Iter::value_type, int>); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.min.max/
H A Dminmax_element.pass.cpp25 template <class Iter>
27 test(Iter first, Iter last) in test()
29 std::pair<Iter, Iter> p = std::minmax_element(first, last); in test()
45 template <class Iter>
53 test(Iter(a), Iter(a+N)); in test()
61 test<Iter>(0); in test()
62 test<Iter>(1); in test()
63 test<Iter>(2); in test()
64 test<Iter>(3); in test()
65 test<Iter>(10); in test()
[all …]

12345678910>>...18