Horje
vector.find() Code Example
vector.find()
#include <algorithm>
#include <vector>

if ( std::find(vec.begin(), vec.end(), item) != vec.end() )
   do_this();
else
   do_that();




Cpp

Related
c++ if in equivalent Code Example c++ if in equivalent Code Example
vector fin element c++ Code Example vector fin element c++ Code Example
include guard c++ Code Example include guard c++ Code Example
get the element at an index list c++ Code Example get the element at an index list c++ Code Example
vector search by element Code Example vector search by element Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7