C++标准库中的find()函数怎么调用?
我写了一段代码:
//value we'll look for
int search_value = 42;
std::vector<int> vec;
vec.push_back(42);
vec.push_back(40);
vec.push_back(41);
//call find to see if that value is present
std::vector<int>::const_iterator result = find(vec.begin(),vec.end(),search_value);