设为首页 加入收藏

TOP

STL algorithm算法find_if(19)
2015-07-20 17:42:11 来源: 作者: 【 】 浏览:1
Tags:STL algorithm 算法 find_if

?

function template

std::find_if

template 
   
    
   InputIterator find_if (InputIterator first, InputIterator last, UnaryPredicate pred);
   
Find element in range Returns an iterator to the first element in the range [first,last) for which pred returns true. If no such element is found, the function returns last.
返回范围内第一个符合要求的元素的迭代器,如果没有,则返回last.
#include 
   
    
#include 
    
      #include 
     
       #include 
      
        using namespace std; void findif() { vector
       
         v1{1,2,3,4,5,6,3,4,9,8}; array
        
          ai{77,88}; cout<
         
          运行截图:
          \ The behavior of this function template is equivalent to:
          
?
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇C++实现Point类 下一篇LA 3236 That Nice Euler Circuit..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·工业机器人TCP校准中 (2025-12-25 05:19:17)
·opc 通讯协议与 TCP (2025-12-25 05:19:15)
·labview中tcp/ip通信 (2025-12-25 05:19:13)
·新书介绍《Python数 (2025-12-25 04:49:47)
·怎么利用 Python 进 (2025-12-25 04:49:45)