Define operator!= in terms of operator== (#1659)

This commit is contained in:
Rangi
2025-02-15 11:34:06 +01:00
committed by GitHub
parent b2e865ee2a
commit 62309d5c87
4 changed files with 9 additions and 9 deletions

View File

@@ -466,7 +466,7 @@ public:
}
bool operator==(Iterator const &rhs) const { return coords() == rhs.coords(); }
bool operator!=(Iterator const &rhs) const { return coords() != rhs.coords(); }
bool operator!=(Iterator const &rhs) const { return !operator==(rhs); }
};
public: