title: How to find out if an item is present in a std::vector?
body: <p>All I want to do is to check whether an element exists in the vector or not, so I can deal with each case.</p>
  
  <pre><code>if ( item_present )
     do_this();
  else
     do_that();
  </code></pre>