lower_bound()和upper_bound
转载自飘过的小牛,原网址:http://blog.youkuaiyun.com/niushuai666/article/details/6734403函数lower_bound()在first和last中的前闭后开区间进行二分查找,返回大于或等于val的第一个元素位置。如果所有元素都小于val,则返回last的位置举例如下:一个数组number序列为:4,10,11,30,69,7
原创
2015-05-31 19:55:47 ·
2029 阅读 ·
0 评论