Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libcxx/test/std/algorithms/
H A Dranges_robust_against_differing_projections.pass.cpp55 auto proj2 = [](A a) { return a.x * -1; }; in test_all() local
57 test(std::ranges::equal, in, in2, eq, proj1, proj2); in test_all()
59 test(std::ranges::is_permutation, in, in2, eq, proj1, proj2); in test_all()
60 test(std::ranges::includes, in, in2, less, proj1, proj2); in test_all()
61 test(std::ranges::find_first_of, in, in2, eq, proj1, proj2); in test_all()
62 test(std::ranges::mismatch, in, in2, eq, proj1, proj2); in test_all()
63 test(std::ranges::search, in, in2, eq, proj1, proj2); in test_all()
64 test(std::ranges::find_end, in, in2, eq, proj1, proj2); in test_all()
65 test(std::ranges::transform, in, in2, out, sum, proj1, proj2); in test_all()
68 test(std::ranges::merge, in, in2, out, less, proj1, proj2); in test_all()
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/includes/
H A Dranges_includes.pass.cpp47 …&& iter1, Sent1&& sent1, Iter2&& iter2, Sent2&& sent2, Comp&& comp, Proj1&& proj1, Proj2&& proj2) {
55 std::forward<Proj2>(proj2));
83 requires(Range1&& range1, Range2&& range2, Comp&& comp, Proj1&& proj1, Proj2&& proj2) {
89 std::forward<Proj2>(proj2));
311 constexpr auto proj2() { in test() function
327 …1.begin(), r1.end(), r2.begin(), r2.end(), compProjs.comp(), compProjs.proj1(), compProjs.proj2()); in test()
338 …uto result = std::ranges::includes(r1, r2, compProjs.comp(), compProjs.proj1(), compProjs.proj2()); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.is_permutation/
H A Dranges.is_permutation.pass.cpp207 counting_projection<> proj2(proj2Count); in test() local
219 auto ret = std::ranges::is_permutation(a, a + 5, b_begin, b_end, pred, proj1, proj2); in test()
229 …to ret = std::ranges::is_permutation(a, std::ranges::subrange(b_begin, b_end), pred, proj1, proj2); in test()
247 auto ret = std::ranges::is_permutation(a, a + 5, b, b + 5, pred, proj1, proj2); in test()
257 auto ret = std::ranges::is_permutation(a, b, pred, proj1, proj2); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.lex.comparison/
H A Dranges.lexicographical_compare.pass.cpp211 auto proj2 = [&](int i) { ++proj2Count; return i; }; in test() local
213 …exicographical_compare(std::begin(a), std::end(a), std::begin(a), std::end(a), pred, proj1, proj2); in test()
225 auto proj2 = [&](int i) { ++proj2Count; return i; }; in test() local
227 auto ret = std::ranges::lexicographical_compare(a, a, pred, proj1, proj2); 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.cpp271 auto proj2 = [](A value) { return value.a * -1; }; in test() local
282 …t = std::ranges::partial_sort_copy(in.begin(), in.end(), out.begin(), out.end(), {}, proj1, proj2); in test()
291 result = std::ranges::partial_sort_copy(in, out, {}, proj1, proj2); in test()
/llvm-project-15.0.7/libcxx/include/
H A Dalgorithm155 F binary_op, Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
163 F binary_op, Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
417 … Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
423 … Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
456 Comp comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); // Since C++20
466 Proj1 proj1 = {}, Proj2 proj2 = {}); // Since C++20
553 … Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
561 … Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
607 … Comp comp = {}, Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
615 … Proj1 proj1 = {}, Proj2 proj2 = {}); // since C++20
[all …]
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.difference/
H A Dranges_set_difference.pass.cpp473 const auto proj2 = [&numberOfProj2](const Data& d) { in test() local
478 …ranges::set_difference(r1.begin(), r1.end(), r2.begin(), r2.end(), out.data(), comp, proj1, proj2); in test()
503 const auto proj2 = [&numberOfProj2](const Data& d) { in test() local
508 std::ranges::set_difference(r1, r2, out.data(), comp, proj1, proj2); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.intersection/
H A Dranges_set_intersection.pass.cpp492 const auto proj2 = [&numberOfProj2](const Data& d) { in test() local
497 …nges::set_intersection(r1.begin(), r1.end(), r2.begin(), r2.end(), out.data(), comp, proj1, proj2); in test()
522 const auto proj2 = [&numberOfProj2](const Data& d) { in test() local
527 std::ranges::set_intersection(r1, r2, out.data(), comp, proj1, proj2); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.merge/
H A Dranges_merge.pass.cpp500 const auto proj2 = [&numberOfProj2](const Data& d) { in test() local
505 std::ranges::merge(r1, r1 + 10, r2, r2 + 10, out.data(), comp, proj1, proj2); in test()
529 const auto proj2 = [&numberOfProj2](const Data& d) { in test() local
534 std::ranges::merge(r1, r2, out.data(), comp, proj1, proj2); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.symmetric.difference/
H A Dranges_set_symmetric_difference.pass.cpp443 constexpr auto proj2() { in test() function
470 compProjs.proj2()); in test()
483 …t_symmetric_difference(r1, r2, out.data(), compProjs.comp(), compProjs.proj1(), compProjs.proj2()); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.union/
H A Dranges_set_union.pass.cpp443 constexpr auto proj2() { in test() function
470 compProjs.proj2()); in test()
483 …std::ranges::set_union(r1, r2, out.data(), compProjs.comp(), compProjs.proj1(), compProjs.proj2()); in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/
H A Dranges.transform.pass.cpp412 auto proj2 = [&](int) { ++proj2Count; return 0; }; in test_iterators() local
416 …transform(In1(a), Sent1(In1(a + 4)), In2(b), Sent2(In2(b + 4)), Out(c.data()), pred, proj1, proj2); in test_iterators()
428 auto proj2 = [&](int) { ++proj2Count; return 0; }; in test_iterators() local
434 std::ranges::transform(range1, range2, Out(c.data()), pred, proj1, proj2); in test_iterators()