Searched refs:NullaryValue (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/libcxx/test/libcxx/algorithms/ |
| H A D | robust_against_copying_comparators.pass.cpp | 55 struct NullaryValue { struct 57 TEST_CONSTEXPR explicit NullaryValue(int *copies) : copies_(copies) {} in NullaryValue() argument 58 …TEST_CONSTEXPR_CXX14 NullaryValue(const NullaryValue& rhs) : copies_(rhs.copies_) { *copies_ += 1;… in NullaryValue() function 59 TEST_CONSTEXPR_CXX14 NullaryValue& operator=(const NullaryValue&) = default; 130 (void)std::generate(first, last, NullaryValue<T>(&copies)); assert(copies == 0); in all_the_algorithms() 131 (void)std::generate_n(first, count, NullaryValue<T>(&copies)); assert(copies == 0); in all_the_algorithms()
|
| H A D | ranges_robust_against_copying_comparators.pass.cpp | 54 struct NullaryValue { struct 56 constexpr explicit NullaryValue(int *copies) : copies_(copies) {} in NullaryValue() argument 57 constexpr NullaryValue(const NullaryValue& rhs) : copies_(rhs.copies_) { *copies_ += 1; } in NullaryValue() argument 58 constexpr NullaryValue& operator=(const NullaryValue&) = default; 124 (void)std::ranges::generate(first, last, NullaryValue(&copies)); assert(copies == 0); in all_the_algorithms() 125 (void)std::ranges::generate(a, NullaryValue(&copies)); assert(copies == 0); in all_the_algorithms() 126 (void)std::ranges::generate_n(first, count, NullaryValue(&copies)); assert(copies == 0); in all_the_algorithms()
|
| H A D | ranges_robust_against_copying_projections.pass.cpp | 48 struct NullaryValue { struct
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/ |
| H A D | robust_against_adl.compile.pass.cpp | 33 struct NullaryValue { TEST_CONSTEXPR std::nullptr_t operator()() const { return nullptr; } }; in operator ()() argument 87 (void)std::generate(first, last, NullaryValue()); in all_the_algorithms() 88 (void)std::generate_n(first, count, NullaryValue()); in all_the_algorithms()
|
| H A D | robust_re_difference_type.compile.pass.cpp | 70 struct NullaryValue { TEST_CONSTEXPR std::nullptr_t operator()() const { return nullptr; } }; in operator ()() struct 124 (void)std::generate(first, last, NullaryValue()); in all_the_algorithms() 125 (void)std::generate_n(first, count, NullaryValue()); in all_the_algorithms()
|