Home
last modified time | relevance | path

Searched refs:proj1 (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.cpp54 auto proj1 = [](int x) { return 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 …requires(Iter1&& iter1, Sent1&& sent1, Iter2&& iter2, Sent2&& sent2, Comp&& comp, Proj1&& proj1, P…
54 std::forward<Proj1>(proj1),
83 requires(Range1&& range1, Range2&& range2, Comp&& comp, Proj1&& proj1, Proj2&& proj2) {
88 std::forward<Proj1>(proj1),
304 constexpr auto proj1() { in test() function
327 …r1.begin(), r1.end(), r2.begin(), r2.end(), compProjs.comp(), compProjs.proj1(), compProjs.proj2()… in test()
338 …auto 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.cpp206 counting_projection<> proj1(proj1Count); 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.cpp209 auto proj1 = [&](int i) { ++proj1Count; 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()
223 auto proj1 = [&](int i) { ++proj1Count; 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.cpp270 auto proj1 = [](int value) { return value * -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.cpp468 const auto proj1 = [&numberOfProj1](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()
498 const auto proj1 = [&numberOfProj1](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.cpp487 const auto proj1 = [&numberOfProj1](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()
517 const auto proj1 = [&numberOfProj1](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.cpp495 const auto proj1 = [&numberOfProj1](const Data& d) { in test() local
505 std::ranges::merge(r1, r1 + 10, r2, r2 + 10, out.data(), comp, proj1, proj2); in test()
524 const auto proj1 = [&numberOfProj1](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.cpp436 constexpr auto proj1() { in test() function
469 compProjs.proj1(), in test()
483 …std::ranges::set_symmetric_difference(r1, r2, out.data(), compProjs.comp(), compProjs.proj1(), com… in test()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.set.operations/set.union/
H A Dranges_set_union.pass.cpp436 constexpr auto proj1() { in test() function
469 compProjs.proj1(), 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.cpp411 auto proj1 = [&](int) { ++proj1Count; 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()
427 auto proj1 = [&](int) { ++proj1Count; return 0; }; in test_iterators() local
434 std::ranges::transform(range1, range2, Out(c.data()), pred, proj1, proj2); in test_iterators()