int a[]={1,2,3,4}; next_permutation(a,a+3);//下一个全排列
lower_bound(first,last,val);//有返回值 upper_bound(first,last,val);