title: find an item in a list of pointers
body: <p>I am trying to understand how to find an item in a list of pointers in C++, using std::find</p>
  
  <p>If I had for example:</p>
  
  <pre><code>std::list&lt;string&gt; words;
  std::string word_to_be_found;
  </code></pre>
  
  <p>I could just search like this:</p>
  
  <pre><code>std::list&lt;string&gt;::iterator matching_iter = std::find(words,begin(), words.end(), word_to_be_found)
  </code></pre>
  
  <p>but what if I have a lsit of pointers?</p>
  
  <pre><code>std::list&lt;string *&gt; words;
  </code></pre>
  
  <p>the above syntax will not work anymore. Can I do it some similar way?</p>
  
  <p>thanks!</p>