title: find int inside struct with find_if for std::list with structs
body: <p>How can I use find_if with a std::list if the list contains structs? My first pseudo code attempt at this looks like this:</p>
  
  <pre><code>typename std::list&lt;Event&gt;::iterator found = 
      find_if(cal.begin(), cal.last(), predicate); 
  </code></pre>
  
  <p>The problem here is that the predicate is not directly visible in the list but inside <code>event.object.return_number()</code>. How am I suppose to refer to an int that is nested inside the struct and needs a get method to be accessed.</p>