mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 17:52:52 +00:00
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
|
||||
*/
|
||||
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…
x
Reference in New Issue
Block a user