NodeID comparison operators

This commit is contained in:
Pavel Kirienko
2014-03-23 16:36:55 +04:00
parent ec94ebb1f4
commit aa5d7a190a
2 changed files with 46 additions and 0 deletions
@@ -95,6 +95,11 @@ public:
bool operator!=(NodeID rhs) const { return !operator==(rhs); }
bool operator==(NodeID rhs) const { return value_ == rhs.value_; }
bool operator<(NodeID rhs) const { return value_ < rhs.value_; }
bool operator>(NodeID rhs) const { return value_ > rhs.value_; }
bool operator<=(NodeID rhs) const { return value_ <= rhs.value_; }
bool operator>=(NodeID rhs) const { return value_ >= rhs.value_; }
};
}