Commit 4a2e1f0f authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[id] add operator==

parent c2fd30a2
......@@ -50,6 +50,12 @@ public:
std::size_t get() const
{ return id_; }
/*!
* \brief Equality check.
*/
bool operator== (const Id& otherId) const
{ return id_ == otherId.get(); }
private:
std::size_t id_;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment