Fix missing counting iterator operators for stdpar

This commit is contained in:
Tom Lin 2022-03-31 14:50:10 +01:00
parent e77a34158c
commit 7b2bd5427c

View File

@ -34,6 +34,7 @@ public:
iterator& operator++() { num++; return *this; }
iterator operator++(int) { iterator retval = *this; ++(*this); return retval; }
iterator operator+(const value_type v) const { return iterator(num + v); }
iterator operator+=(int x) { iterator retval = *this; this->num+=x; return retval; }
bool operator==(iterator other) const { return num == other.num; }
bool operator!=(iterator other) const { return *this != other; }