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(
As others have said, use the STL find or find_if functions. But if you are searching in very large vectors and this impacts performance, you may want to sort your vector and then use the binary_search, lower_bound, or upper_bound algorithms.