compare関数,operator<について
自前構造体のsetとかにcompareを入れたい時
struct a{ int x; bool operator <(const a& st) const { return x<st.x; } };
//setの定義には(かなり変なことをしないと)入れられない bool comp(const a& l,const a& r){ return l.x<r.x; }
//関数型 struct Comp { bool operator()(const a& l,const a& r) const { return l.x<r.x; } };
1つ目を使う