It's 2016 and C++11 supports these natively

This commit is contained in:
DarthArgus
2016-12-15 03:01:41 +00:00
parent 18cb7d0e95
commit 3bdc77a5d2
5 changed files with 28 additions and 11 deletions
@@ -47,6 +47,7 @@ public:
NetworkId& operator= (const NetworkId&);
bool operator< (const NetworkId& rhs) const;
bool operator> (const NetworkId& rhs) const;
bool operator== (const NetworkId& rhs) const;
bool operator!= (const NetworkId& rhs) const;
size_t getHashValue() const;
@@ -94,6 +95,11 @@ inline bool NetworkId::operator< (const NetworkId& rhs) const
return m_value < rhs.m_value;
}
inline bool NetworkId::operator> (const NetworkId& rhs) const
{
return m_value > rhs.m_value;
}
// -----------------------------------------------------------------------
inline bool NetworkId::operator== (const NetworkId& rhs) const