Searched defs:int_iterator (Results 1 – 1 of 1) sorted by relevance
118 struct int_iterator { struct119 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() argument128 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 !=()[all …]