Derive operator!= from operator== (#1660)

This commit is contained in:
Rangi authored and GitHub committed 2025-02-15 12:37:42 +01:00
1 parent 62309d5c87
commit 993879a2ed
6 files changed
+3 -8

No files matched your search

-1
View File
@@ -87,7 +87,6 @@ private:
Iter() = default;
bool operator==(Iter const &rhs) const { return _iter == rhs._iter; }
bool operator!=(Iter const &rhs) const { return !operator==(rhs); }
Iter &operator++() {
++_iter;
-1
View File
@@ -466,7 +466,6 @@ public:
}
bool operator==(Iterator const &rhs) const { return coords() == rhs.coords(); }
bool operator!=(Iterator const &rhs) const { return !operator==(rhs); }
};
public: