Lines Matching defs:int_iterator
118 struct int_iterator { struct
119 using iterator_category = std::input_iterator_tag;
120 using difference_type = std::ptrdiff_t;
121 using value_type = int;
122 using reference = int&;
123 using pointer = int*;
126 int_iterator(int i) :val(i) {} in int_iterator() function
128 value_type operator*() const { return val; } in operator *()
129 bool operator==(int_iterator rhs) const { return val == rhs.val; } in operator ==()
130 bool operator!=(int_iterator rhs) const { return val != rhs.val; } in operator !=()
131 int_iterator operator++() { ++val; return *this; } in operator ++()
132 int_iterator operator++(int) { in operator ++()
138 int val = 5;