c++中std::find_std :: find()与C ++中的示例

c++中std::find

find()作为STL函数 (find() as a STL function)

find() is an STL function that comes under the <algorithm> header file which returns an iterator to the first occurrence of the searching element within a range.

find()是STL函数,位于< algorithm>头文件下面,该文件将迭代器返回到范围内搜索元素的第一个匹配项。

Syntax:

句法:

InputIterator find(
    InputIterator first, 
    InputIterator last, 
    const T& val);

Where,

哪里,

  • InputIterator first - iterator to start of the searching range

    首先使用InputIterator-迭代器开始搜索范围

  • InputIterator last - iterator to end of the searching range

    InputIterator last-迭代到搜索范围的结尾

  • const T& val - value to be searched of datatype T

    const T&val-要搜索的数据类型T的值

What is InputIterator?
Iterator to first position of the range where we find the searching element. If searching element is not found it returns iterator to the end

你可能感兴趣的:(c++,python,leetcode,matlab,算法)