Home
last modified time | relevance | path

Searched refs:BinaryTransform (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/
H A Drobust_against_copying_comparators.pass.cpp73 struct BinaryTransform { struct
75 TEST_CONSTEXPR explicit BinaryTransform(int *copies) : copies_(copies) {} in BinaryTransform() argument
76 …TEST_CONSTEXPR_CXX14 BinaryTransform(const BinaryTransform& rhs) : copies_(rhs.copies_) { *copies_… in BinaryTransform() argument
77 TEST_CONSTEXPR_CXX14 BinaryTransform& operator=(const BinaryTransform&) = default;
200 (void)std::transform(first, mid, mid, first2, BinaryTransform<T>(&copies)); assert(copies == 0); in all_the_algorithms()
H A Dranges_robust_against_copying_comparators.pass.cpp70 struct BinaryTransform { struct
72 constexpr explicit BinaryTransform(int *copies) : copies_(copies) {} in BinaryTransform() argument
73 constexpr BinaryTransform(const BinaryTransform& rhs) : copies_(rhs.copies_) { *copies_ += 1; } in BinaryTransform() function
74 constexpr BinaryTransform& operator=(const BinaryTransform&) = default;
223 …(void)std::ranges::transform(first, mid, mid, last, first2, BinaryTransform(&copies)); assert(copi… in all_the_algorithms()
224 (void)std::ranges::transform(a, b, first2, BinaryTransform(&copies)); assert(copies == 0); in all_the_algorithms()
H A Dranges_robust_against_copying_projections.pass.cpp56 struct BinaryTransform { struct
214 …(void)std::ranges::transform(first, mid, mid, last, first2, BinaryTransform(), Proj(&copies), Proj… in all_the_algorithms()
215 …(void)std::ranges::transform(a, b, first2, BinaryTransform(), Proj(&copies), Proj(&copies)); asser… in all_the_algorithms()
/llvm-project-15.0.7/libcxx/test/std/algorithms/
H A Drobust_against_adl.compile.pass.cpp35 struct BinaryTransform { TEST_CONSTEXPR std::nullptr_t operator()(void*, void*) const { return null… in operator ()() argument
207 (void)std::transform(first, mid, mid, first2, BinaryTransform()); in all_the_algorithms()
H A Drobust_re_difference_type.compile.pass.cpp72 struct BinaryTransform { TEST_CONSTEXPR std::nullptr_t operator()(void*, void*) const { return null… in operator ()() argument
242 (void)std::transform(first, mid, mid, first2, BinaryTransform()); in all_the_algorithms()