Lines Matching refs:Iterator
35 class Iterator {
42 constexpr Iterator(ptrdiff_t index, Iter it) : fIndex{index}, fIt{it} { }
43 constexpr Iterator(const Iterator&) = default;
44 constexpr Iterator operator++() { ++fIndex; ++fIt; return *this; }
45 constexpr Iterator operator++(int) { Iterator tmp(*this); operator++(); return tmp; }
46 constexpr bool operator==(const Iterator& rhs) const { return fIt == rhs.fIt; }
47 constexpr bool operator!=(const Iterator& rhs) const { return fIt != rhs.fIt; }
68 constexpr Iterator begin() const { return Iterator{fBeginIndex, fBegin}; }
69 constexpr Iterator end() const { return Iterator{fBeginIndex + this->ssize(), fEnd}; }