title: Find a pair in a vector by its first value
body: <p>I have a vector which contains several pairs(INT,INT).
  I want to search for a particular but I only have one key of that pair.
  How should I search for the second key?</p>