std::lower_bound和st::upper_bound详细使用说明请看代码
//
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
//lower_bound的作用是返回第一个不满足比较操作的迭代器,如果序列是升序排列,
std::lower_bound和st::upper_bound详细使用说明请看代码
//
#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>
//lower_bound的作用是返回第一个不满足比较操作的迭代器,如果序列是升序排列,