您当前的位置: 首页 >  算法

txwtech

暂无认证

  • 2浏览

    0关注

    813博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

cb31a_c++_STL_算法_查找算法_(4)find_first_of

txwtech 发布时间:2020-02-20 18:59:22 ,浏览量:2

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             
关注
打赏
1665060526
查看更多评论
0.0413s