InputIterator find (InputIterator first, InputIterator last, const T& val);
用于单纯查找某个值
例如:
#include "stdafx.h"
#include <algorithm>
#include <vector>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
vector<int> vec;
vec.push_back(1);
vec.push_back(4);
vec.push_back(4);
vec.push_back(3);
vec.push_back(6);
auto itrFind = find(vec.begin(), vec.end(),4);
return 0;
}