Searched refs:int_iterator (Results 1 – 2 of 2) sorted by relevance
118 struct int_iterator { struct125 int_iterator() = default;126 int_iterator(int i) :val(i) {} in int_iterator() function129 bool operator==(int_iterator rhs) const { return val == rhs.val; } in operator ==() argument130 bool operator!=(int_iterator rhs) const { return val != rhs.val; } in operator !=() argument131 int_iterator operator++() { ++val; return *this; } in operator ++() argument132 int_iterator operator++(int) { in operator ++() argument142 int_iterator begin() const { return int_iterator{ 1 }; } in begin()143 int_iterator end() const { return {}; } in end()152 int_iterator begin() const { return int_iterator{ 1 }; } in begin()[all …]
224 typedef std::vector<int>::iterator int_iterator; typedef231 int_iterator more_sugar = Vec.begin(); in sugar()268 int_iterator I = Vec.begin(); in pointer_to_iterator()273 int_iterator *IPtr = &I; in pointer_to_iterator()274 int_iterator &IRef = I; in pointer_to_iterator()283 for (int_iterator I = Vec.begin(), E = Vec.end(); I != E; ++I) { in loop()