Loading docs/lang/op-overload.md +2 −3 Original line number Diff line number Diff line Loading @@ -97,8 +97,7 @@ struct student { string name; int score; }; bool operator<(const student&a,const student&b) { bool operator<(const student& a, const student& b) { return a.score < b.score || (a.score == b.score && a.name > b.name); } priority_queue<student> pq; Loading Loading
docs/lang/op-overload.md +2 −3 Original line number Diff line number Diff line Loading @@ -97,8 +97,7 @@ struct student { string name; int score; }; bool operator<(const student&a,const student&b) { bool operator<(const student& a, const student& b) { return a.score < b.score || (a.score == b.score && a.name > b.name); } priority_queue<student> pq; Loading