cb31a_c++_STL_算法_查找算法_(4)find_first_of find_first_of(b,e,sb,se),sb,second begin, se,second end(); find_first_of(b,e,sb,se,bp),bp--谓词,就是一个函数,或者函数对象,返回一个bool
使用逆向迭代器,实现string类的rfind.找最后一个。reverse_find=rfind 没有find_last_of算法,string类的成员函数有find_last_of
find() find_if() search_in() serarch() find_end() find_first_of() adjacent_find() txwtech@163.com
/*cb31a_c++_STL_算法_查找算法_(4)find_first_of
find_first_of(b,e,sb,se),sb,second begin, se,second end();
find_first_of(b,e,sb,se,bp),bp--谓词,就是一个函数,或者函数对象,返回一个bool
使用逆向迭代器,实现string类的rfind.找最后一个。reverse_find=rfind
没有find_last_of算法,string类的成员函数有find_last_of
find()
find_if()
search_in()
serarch()
find_end()
find_first_of()
adjacent_find()
txwtech@163.com
*/
#include
#include
#include
#include
#include
using namespace std;
int main()
{
vector ivec;
list searchList;
for (int i = 1; i
关注
打赏