Home
last modified time | relevance | path

Searched refs:out_first (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/pstl/test/std/utilities/memory/specialized.algorithms/
H A Duninitialized_copy_move.pass.cpp49 std::destroy_n(exec, out_first, n); in operator ()()
54 std::uninitialized_copy(exec, first, last, out_first); in operator ()()
58 std::destroy_n(exec, out_first, n); in operator ()()
60 std::uninitialized_copy_n(exec, first, n, out_first); in operator ()()
62 std::destroy_n(exec, out_first, n); in operator ()()
69 std::destroy_n(exec, out_first, n); in operator ()()
73 std::destroy_n(exec, out_first, n); in operator ()()
98 std::destroy_n(exec, out_first, n); in operator ()()
102 std::destroy_n(exec, out_first, n); in operator ()()
106 std::destroy_n(exec, out_first, n); in operator ()()
[all …]
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/
H A Dcopy_move.pass.cpp52 std::fill_n(out_first, size, trash); in operator ()()
56 auto k = copy(exec, first, last, out_first); in operator ()()
59 EXPECT_EQ_N(expected_first, out_first, size, "wrong effect from copy"); in operator ()()
63 std::fill_n(out_first, size, trash); in operator ()()
65 k = copy_n(exec, first, n, out_first); in operator ()()
68 EXPECT_EQ_N(expected_first, out_first, size, "wrong effect from copy_n"); in operator ()()
103 std::fill_n(out_first, size, trash); in operator ()()
107 auto k = move(exec, first, last, out_first); in operator ()()
110 EXPECT_EQ_N(expected_first, out_first, size, "wrong effect from move"); in operator ()()
144 std::fill_n(out_first, size, trash); in operator ()()
[all …]
H A Dremove.pass.cpp36 OutputIterator out_first, OutputIterator out_last, OutputIterator expected_first, in operator ()()
44 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
50 std::copy(first, last, out_first); in operator ()()
54 OutputIterator k = remove(exec, out_first, out_last, value); in operator ()()
56 … EXPECT_EQ_N(expected_first, out_first, std::distance(expected_first, i), "wrong remove effect"); in operator ()()
74 OutputIterator out_first, OutputIterator out_last, OutputIterator expected_first, in operator ()()
82 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
88 std::copy(first, last, out_first); in operator ()()
92 OutputIterator k = remove_if(exec, out_first, out_last, pred); in operator ()()
93 EXPECT_TRUE(std::distance(expected_first, i) == std::distance(out_first, k), in operator ()()
[all …]
H A Dtransform_unary.pass.cpp23 check_and_reset(InputIterator first, InputIterator last, OutputIterator out_first) in check_and_reset() argument
27 for (; first != last; ++first, ++out_first, ++k) in check_and_reset()
31 Out actual = *out_first; in check_and_reset()
34 *out_first = k % 7 != 4 ? 7 * k - 5 : 0; in check_and_reset()
42 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
45 auto orr = std::transform(exec, first, last, out_first, op); in operator ()()
47 check_and_reset(first, last, out_first); in operator ()()
H A Dunique_copy_equal.pass.cpp28 …stl::execution::parallel_policy, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
38 OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, in operator ()()
47 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
53 std::fill_n(out_first, n, trash); in operator ()()
57 auto k = unique_copy(exec, first, last, out_first); in operator ()()
58 EXPECT_EQ_N(expected_first, out_first, n, "wrong unique_copy effect"); in operator ()()
67 std::fill_n(out_first, n, trash); in operator ()()
70 k = unique_copy(exec, first, last, out_first, pred); in operator ()()
71 EXPECT_EQ_N(expected_first, out_first, n, "wrong unique_copy with predicate effect"); in operator ()()
H A Dtransform_binary.pass.cpp37 …reset(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, OutputIterator out_first) in check_and_reset() argument
41 for (; first1 != last1; ++first1, ++first2, ++out_first, ++k) in check_and_reset()
45 Out actual = *out_first; in check_and_reset()
56 *out_first = k % 7 != 4 ? 7 * k - 5 : 0; in check_and_reset()
66 OutputIterator out_first, OutputIterator, BinaryOp op) in operator ()()
68 auto result = std::transform(exec, first1, last1, first2, out_first, op); in operator ()()
70 check_and_reset(first1, last1, first2, out_first); in operator ()()
H A Dreplace_copy.pass.cpp28 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
34 std::fill_n(out_first, n, trash); in operator ()()
37 auto k = std::replace_copy(exec, first, last, out_first, old_value, new_value); in operator ()()
38 EXPECT_EQ_N(expected_first, out_first, n, "wrong replace_copy effect"); in operator ()()
43 std::fill_n(out_first, n, trash); in operator ()()
46 k = replace_copy_if(exec, first, last, out_first, pred, new_value); in operator ()()
47 EXPECT_EQ_N(expected_first, out_first, n, "wrong replace_copy_if effect"); in operator ()()
H A Dremove_copy.pass.cpp26 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
32 std::fill_n(out_first, n, trash); in operator ()()
37 auto k = std::remove_copy(exec, first, last, out_first, value); in operator ()()
38 EXPECT_EQ_N(expected_first, out_first, n, "wrong remove_copy effect"); in operator ()()
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.merge/
H A Dmerge.pass.cpp28 OutputIterator out_first, OutputIterator out_last, Compare comp) in operator ()()
32 const auto res = merge(exec, first1, last1, first2, last2, out_first, comp); in operator ()()
34 EXPECT_TRUE(is_sorted(out_first, res, comp), "wrong result from merge with predicate"); in operator ()()
35 …EXPECT_TRUE(includes(out_first, res, first1, last1, comp), "first sequence is not a part of result… in operator ()()
36 …EXPECT_TRUE(includes(out_first, res, first2, last2, comp), "second sequence is not a part of resul… in operator ()()
39 const auto res = merge(exec, first1, last1, first2, last2, out_first); in operator ()()
41 EXPECT_TRUE(is_sorted(out_first, res), "wrong result from merge"); in operator ()()
55 const auto res = merge(exec, first1, last1, first2, last2, out_first, std::greater<T>()); in operator ()()
58 …EXPECT_TRUE(is_sorted(out_first, res, std::greater<T>()), "wrong result from merge with predicate"… in operator ()()
59 EXPECT_TRUE(includes(out_first, res, first1, last1, std::greater<T>()), in operator ()()
[all …]
/llvm-project-15.0.7/pstl/test/std/numerics/numeric.ops/
H A Dscan.pass.cpp91 check_and_reset(Iterator expected_first, Iterator out_first, Size n, T trash) in check_and_reset() argument
93 EXPECT_EQ_N(expected_first, out_first, n, in check_and_reset()
95 std::fill_n(out_first, n, trash); in check_and_reset()
102 …operator()(Policy&& exec, Iterator1 in_first, Iterator1 in_last, Iterator2 out_first, Iterator2 ou… in operator ()()
110 auto orr = inclusive ? inclusive_scan(exec, in_first, in_last, out_first) in operator ()()
111 : exclusive_scan(exec, in_first, in_last, out_first, init); in operator ()()
115 check_and_reset(expected_first, out_first, n, trash); in operator ()()
116 fill(out_first, out_last, trash); in operator ()()
149 auto orr = inclusive ? inclusive_scan(exec, in_first, in_last, out_first, binary_op, init) in operator ()()
150 : exclusive_scan(exec, in_first, in_last, out_first, init, binary_op); in operator ()()
[all …]
H A Dtransform_scan.pass.cpp28 check_and_reset(Iterator expected_first, Iterator out_first, Size n, T trash) in check_and_reset() argument
30 EXPECT_EQ_N(expected_first, out_first, n, in check_and_reset()
33 std::fill_n(out_first, n, trash); in check_and_reset()
41 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
51 …auto orr2 = inclusive ? transform_inclusive_scan(exec, first, last, out_first, binary_op, unary_op… in operator ()()
52 … : transform_exclusive_scan(exec, first, last, out_first, init, binary_op, unary_op); in operator ()()
54 check_and_reset(expected_first, out_first, n, trash); in operator ()()
60 orr2 = transform_inclusive_scan(exec, first, last, out_first, binary_op, unary_op); in operator ()()
62 check_and_reset(expected_first, out_first, n, trash); in operator ()()
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/alg.copy/
H A Dcopy_if.pass.cpp28 …stl::execution::parallel_policy, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
37 OutputIterator out_first, OutputIterator out_last, OutputIterator2 expected_first, in operator ()()
46 operator()(Policy&& exec, InputIterator first, InputIterator last, OutputIterator out_first, in operator ()()
52 std::fill_n(out_first, n, trash); in operator ()()
56 auto k = copy_if(exec, first, last, out_first, pred); in operator ()()
57 EXPECT_EQ_N(expected_first, out_first, n, "wrong copy_if effect"); in operator ()()
66 std::fill_n(out_first, n, trash); in operator ()()
69 k = remove_copy_if(exec, first, last, out_first, [=](const T& x) { return !pred(x); }); in operator ()()
70 EXPECT_EQ_N(expected_first, out_first, n, "wrong remove_copy_if effect"); in operator ()()