Skip to content

Commit

Permalink
fix iter’s operators’ impls
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Nov 30, 2023
1 parent 16e2c0d commit 03a63ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/iter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,22 +285,22 @@ struct Iterator {
#else
/** \brief The equality operator.
*/
bool operator==(const Iterator& other) const { return other._ptr == _ptr; }
bool operator==(const Iterator& other) const { return _ptr == other._ptr; }
/** \brief The not equal to operator.
*/
bool operator!=(const Iterator& other) const { return other._ptr != _ptr; }
bool operator!=(const Iterator& other) const { return _ptr != other._ptr; }
/** \brief The less than or equal to operator.
*/
bool operator<=(const Iterator& other) const { return other._ptr <= _ptr; }
bool operator<=(const Iterator& other) const { return _ptr <= other._ptr; }
/** \brief The less than operator.
*/
bool operator<(const Iterator& other) const { return other._ptr < _ptr; }
bool operator<(const Iterator& other) const { return _ptr < other._ptr; }
/** \brief The greater than or equal to operator.
*/
bool operator>=(const Iterator& other) const { return other._ptr >= _ptr; }
bool operator>=(const Iterator& other) const { return _ptr >= other._ptr; }
/** \brief The greater than operator.
*/
bool operator>(const Iterator& other) const { return other._ptr > _ptr; }
bool operator>(const Iterator& other) const { return _ptr > other._ptr; }
#endif

private:
Expand Down

0 comments on commit 03a63ad

Please sign in to comment.