All I want to do is to check whether an element exists in the vector or not, so I can deal with each case.
if ( item_present ) do_this(); else do_that(
With boost you can use any_of_equal:
#include bool item_present = boost::algorithm::any_of_equal(vector, element);