add != operator for certain stdlib implementations

This commit is contained in:
Konstantin Käfer
2014-08-21 15:39:58 +02:00
parent bbd42fe91f
commit 2c6e34a4fe

View File

@@ -51,6 +51,10 @@ public:
return w == rhs.w && z == rhs.z && x == rhs.x && y == rhs.y;
}
inline bool operator!=(const ID& rhs) const {
return !operator==(rhs);
}
inline bool operator<(const ID &rhs) const {
if (w != rhs.w) return w < rhs.w;
if (z != rhs.z) return z < rhs.z;