os: Add Point::operator ==
This commit is contained in:
parent
fb673fe4fd
commit
13cc423050
|
@ -56,6 +56,11 @@ class Genode::Point
|
||||||
* Operator for testing non-equality of two points
|
* Operator for testing non-equality of two points
|
||||||
*/
|
*/
|
||||||
bool operator != (Point const &p) const { return p.x() != _x || p.y() != _y; }
|
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; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue