title: C++ set search for pair element?
body: <p>So I have a set of <code>pairs&lt;string ,string&gt;</code></p>
  
  <p>And I want to use <code>find()</code> to search for a single string which would be in the "first" of the pair, then if I find that string in first I want to return second from that function.</p>
  
  <p>My current attempt is..</p>
  
  <pre><code>myList::iterator i;
  
  i = theList.find(make_pair(realName, "*"));
  
  return i-&gt;second;
  </code></pre>