我想做的就是检查一个元素是否存在于向量中,所以我可以处理每个案例.
if ( item_present ) do_this(); else do_that();
c++ vector std
c++ ×1
std ×1
vector ×1