Fix missing counting iterator operators for stdpar
This commit is contained in:
parent
e77a34158c
commit
7b2bd5427c
@ -34,6 +34,7 @@ public:
|
|||||||
iterator& operator++() { num++; return *this; }
|
iterator& operator++() { num++; return *this; }
|
||||||
iterator operator++(int) { iterator retval = *this; ++(*this); return retval; }
|
iterator operator++(int) { iterator retval = *this; ++(*this); return retval; }
|
||||||
iterator operator+(const value_type v) const { return iterator(num + v); }
|
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 num == other.num; }
|
||||||
bool operator!=(iterator other) const { return *this != other; }
|
bool operator!=(iterator other) const { return *this != other; }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user