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();
转载于:https://stackoverflow.com/questions/571394/how-to-find-out-if-an-item-is-present-in-a-stdvector