Home
last modified time | relevance | path

Searched refs:DiffTypeIterator (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.nonmodifying/alg.count/
H A Dranges.count.pass.cpp227 struct DiffTypeIterator { in test() struct
233 constexpr DiffTypeIterator() = default; in test()
234 constexpr DiffTypeIterator(int* i) : it(i) {} in test() function
237 constexpr DiffTypeIterator& operator++() { ++it; return *this; } in test() argument
240 bool operator==(const DiffTypeIterator&) const = default; in test()
246 std::ranges::count(DiffTypeIterator(a), DiffTypeIterator(a + 6), 4); in test()
251 auto range = std::ranges::subrange(DiffTypeIterator(a), DiffTypeIterator(a + 6)); in test()
H A Dranges.count_if.pass.cpp253 struct DiffTypeIterator { in test() struct
259 constexpr DiffTypeIterator() = default; in test()
260 constexpr DiffTypeIterator(int* i) : it(i) {} in test() argument
263 constexpr DiffTypeIterator& operator++() { ++it; return *this; } in test() argument
266 bool operator==(const DiffTypeIterator&) const = default; in test()
272 …std::ranges::count_if(DiffTypeIterator(a), DiffTypeIterator(a + 6), [](int& i) { return i == 4; }); in test()
277 auto range = std::ranges::subrange(DiffTypeIterator(a), DiffTypeIterator(a + 6)); in test()