title: If I find an alement in a vector pairs using std:find, how can I get the values from the vector into a string?
body: <p>After using the find function to check if <code>string check;</code> is in a <code>vector&lt;pair&lt;string, string&gt;&gt;</code> by checking the <code>pair[i].first</code>, i would like to get the elements in <code>pair[i].second</code> into a separate string <code>string holder;</code></p>
  
  <p>how would I do this without using loops or is it inevitable and that's the only way? Can the find function return the value in addition to the true or false?</p>