C++ (Qt)bool Point2D::operator < ( const Point2D & p ) const{ if (x < p.x) return true; if (x > p.x) return false; return y < p.y; }
C++ (Qt)bool Point2D::operator < ( const Point2D & p ) const{ return (x < p.x) || (y < p.y);}