[capture list] (parameters) -> return_type { // 函数体 }; #include <iostream> #include <vector> #include <algorithm> struct Node { int v;
lower_bound & upper_bound #include<bits/stdc++.h> using namespace std; int main(){ vector<int> v={1,2,3,4,5}; auto p = lower_bound(v.begin(),v.end(