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(
template bool IsInVector(const T & what, const std::vector & vec) { return std::find(vec.begin(),vec.end(),what)!=vec.end(); }