结构体和类的operator<

typedef struct Point{
    double x,y;
    bool operator<(const Point &other) const
    {
        return x<other.x;
    }
};

 

 

 

 

 

posted @ 2014-05-11 22:05  剑风云  阅读(412)  评论(0编辑  收藏  举报