Searched refs:DiffTypeIterator (Results 1 – 2 of 2) sorted by relevance
227 struct DiffTypeIterator { in test() struct233 constexpr DiffTypeIterator() = default; in test()234 constexpr DiffTypeIterator(int* i) : it(i) {} in test() function237 constexpr DiffTypeIterator& operator++() { ++it; return *this; } in test() argument240 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()
253 struct DiffTypeIterator { in test() struct259 constexpr DiffTypeIterator() = default; in test()260 constexpr DiffTypeIterator(int* i) : it(i) {} in test() argument263 constexpr DiffTypeIterator& operator++() { ++it; return *this; } in test() argument266 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()