结构体和类的operator< typedef struct Point{ double x,y; bool operator<(const Point &other) const { return x<other.x; } };