📅  最后修改于: 2022-03-11 14:44:45.456000             🧑  作者: Mango
代码示例2
//lambda function for sorting vector ascending
sort(vec.begin(),vec.end(),[](int &a, int &b){
return a &a, vector &b){
return a[0]