http://c.biancheng.net/stl/
lower_bound(begin,end,x) 返回第一个不小于x的位置 upper_bound(begin,end,x) 返回第一个大于x的位置 返回的都是位置,减去begin就是下标(从0开始)
lower_bound(begin,end,x)
upper_bound(begin,end,x)
STL的一些基本操作
原文:https://www.cnblogs.com/hezongdnf/p/12076059.html