vector find method code example
Example 1: vector.find()
#include <algorithm>
#include <vector>
if ( std::find(vec.begin(), vec.end(), item) != vec.end() )
do_this();
else
do_that();
Example 2: vector find
auto it = find(vec.begin(),vec,end(), item)!