Home
last modified time | relevance | path

Searched defs: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
228 using difference_type = signed char; in test()
229 using value_type = int; in test()
231 int* it = nullptr; in test()
234 constexpr DiffTypeIterator(int* i) : it(i) {} in test() argument
236 constexpr int& operator*() const { return *it; } in test()
237 constexpr DiffTypeIterator& operator++() { ++it; return *this; } in test()
238 constexpr void operator++(int) { ++it; } in test()
H A Dranges.count_if.pass.cpp253 struct DiffTypeIterator { in test() struct
254 using difference_type = signed char; in test()
255 using value_type = int; in test()
257 int* it = nullptr; in test()
260 constexpr DiffTypeIterator(int* i) : it(i) {} in test() function
262 constexpr int& operator*() const { return *it; } in test()
263 constexpr DiffTypeIterator& operator++() { ++it; return *this; } in test()
264 constexpr void operator++(int) { ++it; } in test()