Answers for "c++ if in equivalent"

C++
5

c++ if in equivalent

#include <algorithm>
#include <vector>

if ( std::find(vec.begin(), vec.end(), item) != vec.end() )
   do_this();
else
   do_that();
Posted by: Guest on July-09-2020

Code answers related to "c++ if in equivalent"

Browse Popular Code Answers by Language