os: Add Point::operator ==

This commit is contained in:
Norman Feske 2014-04-28 21:03:19 +02:00
parent fb673fe4fd
commit 13cc423050
1 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,11 @@ class Genode::Point
* Operator for testing non-equality of two points
*/
bool operator != (Point const &p) const { return p.x() != _x || p.y() != _y; }
/**
* Operator for testing equality of two points
*/
bool operator == (Point const &p) const { return p.x() == _x && p.y() == _y; }
};