首页 > 编程语言 > 详细

C++ 算法algorithm的使用(更新中...)

时间:2019-04-06 19:36:53      阅读:106      评论:0      收藏:0      [点我收藏+]

概述

std::find()  //查找容器中指定元素,查找成功返回该元素第一个迭代器,失败返回最后一个迭代器

 

 

1.find()函数

函数声明:

template <class InputIterator, class T>
   InputIterator find (InputIterator first, InputIterator last, const T& val);

输入起始和结束迭代器,查找成功返回该元素第一个迭代器,失败返回最后一个迭代器

 

C++ 算法algorithm的使用(更新中...)

原文:https://www.cnblogs.com/jainszhang/p/10662453.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!