天天看點

vector自定義資料結構數組按照指定元素排序

一句話,好友善!

sort(intervals.begin(), intervals.end(), [](Interval a, Interval b){return a.start < b.start;});