title: Can I remove elements from std::list, when I'm iterating on it?
body: <p>Can I remove elements from std::list, when I'm iterating on it? For example so:</p>
  
  <pre><code>std::list&lt;int&gt; lst;
  //....
  for (std::list&lt;int&gt; itr = lst.begin(); itr != lst.end(); itr++)
  {
      if (*itr &gt; 10)
           lst.remove(*itr);
  }
  </code></pre>
  
  <p>?
  And why?</p>