Home
last modified time | relevance | path

Searched refs:InIter (Results 1 – 25 of 29) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
H A Drotate_copy.pass.cpp28 OutIter r = std::rotate_copy(InIter(ia), InIter(ia), InIter(ia), OutIter(ib)); in test()
31 r = std::rotate_copy(InIter(ia), InIter(ia), InIter(ia + 1), OutIter(ib)); in test()
35 r = std::rotate_copy(InIter(ia), InIter(ia + 1), InIter(ia + 1), OutIter(ib)); in test()
39 r = std::rotate_copy(InIter(ia), InIter(ia), InIter(ia + 2), OutIter(ib)); in test()
44 r = std::rotate_copy(InIter(ia), InIter(ia + 1), InIter(ia + 2), OutIter(ib)); in test()
49 r = std::rotate_copy(InIter(ia), InIter(ia + 2), InIter(ia + 2), OutIter(ib)); in test()
54 r = std::rotate_copy(InIter(ia), InIter(ia), InIter(ia + 3), OutIter(ib)); in test()
60 r = std::rotate_copy(InIter(ia), InIter(ia + 1), InIter(ia + 3), OutIter(ib)); in test()
66 r = std::rotate_copy(InIter(ia), InIter(ia + 2), InIter(ia + 3), OutIter(ib)); in test()
72 r = std::rotate_copy(InIter(ia), InIter(ia + 3), InIter(ia + 3), OutIter(ib)); in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/
H A Dranges_replace_copy.pass.cpp108 auto first = InIter(d.input.data()); in test()
122 …auto range = std::ranges::subrange(InIter(d.input.data()), Sent(InIter(d.input.data() + d.input.s… in test()
133 template <class InIter, class Sent, class OutIter>
148 test<InIter, Sent, OutIter, 7>( in tests()
156 template <class InIter, class Sent>
159 tests<InIter, Sent, forward_iterator<int*>>(); in test_output_iterators()
163 tests<InIter, Sent, int*>(); in test_output_iterators()
166 template <class InIter>
168 test_output_iterators<InIter, InIter>(); in test_sentinels()
169 test_output_iterators<InIter, sentinel_wrapper<InIter>>(); in test_sentinels()
[all …]
H A Dranges_replace_copy_if.pass.cpp112 auto first = InIter(d.input.data()); in test()
128 …auto range = std::ranges::subrange(InIter(d.input.data()), Sent(InIter(d.input.data() + d.input.s… in test()
141 template <class InIter, class Sent, class OutIter>
152 test<InIter, Sent, OutIter, 7>( in tests()
160 template <class InIter, class Sent>
163 tests<InIter, Sent, forward_iterator<int*>>(); in test_output_iterators()
167 tests<InIter, Sent, int*>(); in test_output_iterators()
170 template <class InIter>
172 test_output_iterators<InIter, InIter>(); in test_sentinels()
173 test_output_iterators<InIter, sentinel_wrapper<InIter>>(); in test_sentinels()
[all …]
H A Dreplace_copy.pass.cpp41 template <class InIter, class OutIter>
48 OutIter r = std::replace_copy(InIter(ia), InIter(ia+sa), OutIter(ib), 2, 5); in test()
H A Dreplace_copy_if.pass.cpp44 template <class InIter, class OutIter>
51 OutIter r = std::replace_copy_if(InIter(ia), InIter(ia+sa), in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/
H A Dranges_partition_copy.pass.cpp163 template <class InIter, class Sent, class Out1, class Out2>
168 test_one<InIter, Sent, Out1, Out2, 0, 0, 0>({}, is_odd, {}, {}); in test_iterators_in_sent_out1_out2()
170 test_one<InIter, Sent, Out1, Out2, 1, 1, 0>({1}, is_odd, {1}, {}); in test_iterators_in_sent_out1_out2()
199 template <class InIter, class Sent, class Out1>
203 test_iterators_in_sent_out1_out2<InIter, Sent, Out1, int*>(); in test_iterators_in_sent_out1()
206 template <class InIter, class Sent>
211 test_iterators_in_sent_out1<InIter, Sent, int*>(); in test_iterators_in_sent()
214 template <class InIter>
216 if constexpr (std::sentinel_for<InIter, InIter>) { in test_iterators_in()
217 test_iterators_in_sent<InIter, InIter>(); in test_iterators_in()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/
H A Dunique_copy.pass.cpp51 template <class InIter, class OutIter>
58 OutIter r = std::unique_copy(InIter(ia), InIter(ia+sa), OutIter(ja)); in test()
65 r = std::unique_copy(InIter(ib), InIter(ib+sb), OutIter(jb)); in test()
73 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test()
80 r = std::unique_copy(InIter(id), InIter(id+sd), OutIter(jd)); in test()
88 r = std::unique_copy(InIter(ie), InIter(ie+se), OutIter(je)); in test()
97 r = std::unique_copy(InIter(ig), InIter(ig+sg), OutIter(jg)); in test()
105 r = std::unique_copy(InIter(ih), InIter(ih+sh), OutIter(jh)); in test()
113 r = std::unique_copy(InIter(ii), InIter(ii+si), OutIter(ji)); in test()
H A Dunique_copy_pred.pass.cpp51 template <class InIter, class OutIter>
59 OutIter r = std::unique_copy(InIter(ia), InIter(ia+sa), OutIter(ja), count_equal()); in test()
68 r = std::unique_copy(InIter(ib), InIter(ib+sb), OutIter(jb), count_equal()); in test()
78 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc), count_equal()); in test()
87 r = std::unique_copy(InIter(id), InIter(id+sd), OutIter(jd), count_equal()); in test()
97 r = std::unique_copy(InIter(ie), InIter(ie+se), OutIter(je), count_equal()); in test()
108 r = std::unique_copy(InIter(ig), InIter(ig+sg), OutIter(jg), count_equal()); in test()
118 r = std::unique_copy(InIter(ih), InIter(ih+sh), OutIter(jh), count_equal()); in test()
128 r = std::unique_copy(InIter(ii), InIter(ii+si), OutIter(ji), count_equal()); in test()
H A Dranges_unique_copy.pass.cpp45 class InIter = int*,
53 std::forward<InIter>(in),
184 using Sent = SentWrapper<InIter>; in testUniqueCopyImpl()
190 …std::ranges::unique_copy(InIter{in.data()}, Sent{InIter{in.data() + in.size()}}, OutIter{out.begin… in testUniqueCopyImpl()
199 std::ranges::subrange r{InIter{in.data()}, Sent{InIter{in.data() + in.size()}}}; in testUniqueCopyImpl()
305 …auto result = std::ranges::unique_copy(InIter{in}, Sent{InIter{in + 6}}, InputAndOutputIterator{ou… in test()
313 auto r = std::ranges::subrange(InIter{in}, Sent{InIter{in + 6}}); in test()
326 using InIter = cpp20_input_iterator<int*>; in test() typedef
327 using Sent = sentinel_wrapper<InIter>; in test()
332 …auto result = std::ranges::unique_copy(InIter{in}, Sent{InIter{in + 4}}, cpp20_output_iterator<int… in test()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/
H A Dranges_equal_range.pass.cpp76 template <class InIter, std::size_t N>
78 using Sent = sentinel_wrapper<InIter>; in testEqualRangeImpl()
82 std::same_as<std::ranges::subrange<InIter, InIter>> decltype(auto) result = in testEqualRangeImpl()
83 std::ranges::equal_range(InIter{in.data()}, Sent{InIter{in.data() + in.size()}}, value); in testEqualRangeImpl()
91 std::ranges::subrange r{InIter{in.data()}, Sent{InIter{in.data() + in.size()}}}; in testEqualRangeImpl()
92 …std::same_as<std::ranges::subrange<InIter, InIter>> decltype(auto) result = std::ranges::equal_ran… in testEqualRangeImpl()
99 template <class InIter>
106 testEqualRangeImpl<InIter>(in, value, expected); in testImpl()
114 testEqualRangeImpl<InIter>(in, value, expected); in testImpl()
122 testEqualRangeImpl<InIter>(in, value, expected); in testImpl()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/
H A Dreverse_copy.pass.cpp34 template <class InIter, class OutIter>
41 OutIter r = std::reverse_copy(InIter(ia), InIter(ia), OutIter(ja)); in test()
44 r = std::reverse_copy(InIter(ia), InIter(ia+sa), OutIter(ja)); in test()
50 r = std::reverse_copy(InIter(ib), InIter(ib+sb), OutIter(jb)); in test()
58 r = std::reverse_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test()
67 r = std::reverse_copy(InIter(id), InIter(id+sd), OutIter(jd)); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort.copy/
H A Dranges_partial_sort_copy.pass.cpp182 template <class InIter, class Sent1, class OutIter, class Sent2>
185 test_all_subsequences<InIter, Sent1, OutIter, Sent2, 0>({}); in test_iterators_in_sent1_out_sent2()
188 test_all_subsequences<InIter, Sent1, OutIter, Sent2>(std::array{1}); in test_iterators_in_sent1_out_sent2()
191 test_all_subsequences<InIter, Sent1, OutIter, Sent2>(std::array{2, 1}); in test_iterators_in_sent1_out_sent2()
212 template <class InIter, class Sent1, class OutIter>
214 test_iterators_in_sent1_out_sent2<InIter, Sent1, OutIter, OutIter>(); in test_iterators_in_sent1_out()
218 template <class InIter, class Sent1>
223 template <class InIter>
225 if constexpr (std::sentinel_for<InIter, InIter>) { in test_iterators_in()
226 test_iterators_in_sent1<InIter, InIter>(); in test_iterators_in()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/
H A Dranges_remove_copy_if.pass.cpp104 using Sent = SentWrapper<InIter>; in testRemoveCopyIfImpl()
105 using Result = std::ranges::remove_copy_if_result<InIter, OutIter>; in testRemoveCopyIfImpl()
111 …std::ranges::remove_copy_if(InIter{in.data()}, Sent{InIter{in.data() + in.size()}}, OutIter{out.da… in testRemoveCopyIfImpl()
120 std::ranges::subrange r{InIter{in.data()}, Sent{InIter{in.data() + in.size()}}}; in testRemoveCopyIfImpl()
129 template <class InIter, class OutIter, template <class> class SentWrapper>
136 testRemoveCopyIfImpl<InIter, OutIter, SentWrapper>(in, expected, pred); in testImpl()
144 testRemoveCopyIfImpl<InIter, OutIter, SentWrapper>(in, expected, pred); in testImpl()
152 testRemoveCopyIfImpl<InIter, OutIter, SentWrapper>(in, expected, pred); in testImpl()
160 testRemoveCopyIfImpl<InIter, OutIter, SentWrapper>(in, expected, pred); in testImpl()
168 testRemoveCopyIfImpl<InIter, OutIter, SentWrapper>(in, expected, pred); in testImpl()
[all …]
H A Dranges_remove_copy.pass.cpp106 template <class InIter, class Sent, class OutIter, int N, int M>
108 using Result = std::ranges::remove_copy_result<InIter, OutIter>; in test()
114InIter(d.input.data()), Sent(InIter(d.input.data() + d.input.size())), OutIter(output.data()), d.v… in test()
123 …auto range = std::ranges::subrange(InIter(d.input.data()), Sent(InIter(d.input.data() + d.input.si… in test()
154 template <class InIter, class Sent>
156 tests<InIter, Sent, cpp17_output_iterator<int*>>(); in test_output_iterators()
157 tests<InIter, Sent, forward_iterator<int*>>(); in test_output_iterators()
158 tests<InIter, Sent, bidirectional_iterator<int*>>(); in test_output_iterators()
159 tests<InIter, Sent, random_access_iterator<int*>>(); in test_output_iterators()
160 tests<InIter, Sent, contiguous_iterator<int*>>(); in test_output_iterators()
[all …]
H A Dremove_copy.pass.cpp36 template <class InIter, class OutIter>
43 OutIter r = std::remove_copy(InIter(ia), InIter(ia+sa), OutIter(ib), 2); in test()
H A Dremove_copy_if.pass.cpp40 template <class InIter, class OutIter>
47 OutIter r = std::remove_copy_if(InIter(ia), InIter(ia+sa), in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/
H A Dmove_backward.pass.cpp23 template <class InIter, class OutIter>
33 OutIter r = std::move_backward(InIter(ia), InIter(ia+N), OutIter(ib+N)); in test()
42 template <class InIter, class OutIter>
52 OutIter r = std::move_backward(InIter(ia), InIter(ia+N), OutIter(ib+N)); in test1()
H A Dmove.pass.cpp23 template <class InIter, class OutIter>
33 OutIter r = std::move(InIter(ia), InIter(ia+N), OutIter(ib)); in test()
42 template <class InIter, class OutIter>
52 OutIter r = std::move(InIter(ia), InIter(ia+N), OutIter(ib)); in test1()
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/numeric.iota/
H A Diota.pass.cpp21 template <class InIter>
28 std::iota(InIter(ia), InIter(ia+s), 5); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.copy/
H A Dcopy_backward.pass.cpp23 template <class InIter, class OutIter>
33 OutIter r = std::copy_backward(InIter(ia), InIter(ia+N), OutIter(ib+N)); in test_copy_backward()
H A Dranges.copy_backward.pass.cpp103 template <class InIter, class OutIter>
105 test_iterators<InIter, OutIter, InIter>(); in test_sentinels()
106 test_iterators<InIter, OutIter, sentinel_wrapper<InIter>>(); in test_sentinels()
107 test_iterators<InIter, OutIter, sized_sentinel<InIter>>(); in test_sentinels()
H A Dcopy_if.pass.cpp28 template <class InIter, class OutIter>
38 OutIter r = std::copy_if(InIter(ia), InIter(ia+N), OutIter(ib), Pred()); in test_copy_if()
H A Dcopy.pass.cpp21 template <class InIter, class OutIter>
31 OutIter r = std::copy(InIter(ia), InIter(ia+N), OutIter(ib)); in test_copy()
/llvm-project-15.0.7/libcxx/test/std/numerics/numeric.ops/partial.sum/
H A Dpartial_sum.pass.cpp26 template <class InIter, class OutIter>
34 OutIter r = std::partial_sum(InIter(ia), InIter(ia+s), OutIter(ib)); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/
H A Dunary_transform.pass.cpp43 template <class InIter, class OutIter>
50 OutIter r = std::transform(InIter(ia), InIter(ia+sa), in test()

12