<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.placenet.org/benoit/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Harvard Business School of Echec - cpp  - Commentaires</title>
  <link>http://www.placenet.org/benoit/index.php/</link>
  <description></description>
  <language>fr</language>
  <pubDate>Sat, 09 Aug 2008 08:26:39 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
    
    <item>
    <title>Iterate &amp; Erase - Benoît Dejean</title>
    <link>http://www.placenet.org/benoit/index.php/post/2007/04/22/Iterate-Erase#c43</link>
    <guid isPermaLink="false">urn:md5:330f84e908ae70dc382ca0d57cf3d40f</guid>
    <pubDate>Sun, 22 Apr 2007 15:54:17 +0200</pubDate>
    <dc:creator>Benoît Dejean</dc:creator>
    
    <description>&lt;p&gt;murrayc &amp;gt; &amp;quot;void erase(iterator pos) 	 Associative Container 	Erases the element pointed to by pos.&amp;quot; &lt;a href=&quot;http://www.sgi.com/tech/stl/set.html&quot; title=&quot;http://www.sgi.com/tech/stl/set.html&quot; rel=&quot;nofollow&quot;&gt;http://www.sgi.com/tech/stl/set.htm...&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Oskar &amp;gt; yep, may be it's even nicer.&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Iterate &amp; Erase - Murray Cumming</title>
    <link>http://www.placenet.org/benoit/index.php/post/2007/04/22/Iterate-Erase#c42</link>
    <guid isPermaLink="false">urn:md5:4641da41ff90290085cddbeeafa67135</guid>
    <pubDate>Sun, 22 Apr 2007 11:47:59 +0200</pubDate>
    <dc:creator>Murray Cumming</dc:creator>
    
    <description>&lt;p&gt;erase() has a return value that should point to the next element.&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Iterate &amp; Erase - Oskar</title>
    <link>http://www.placenet.org/benoit/index.php/post/2007/04/22/Iterate-Erase#c41</link>
    <guid isPermaLink="false">urn:md5:ec98409d83cae575859ed85ed2849ce7</guid>
    <pubDate>Sun, 22 Apr 2007 11:06:31 +0200</pubDate>
    <dc:creator>Oskar</dc:creator>
    
    <description>&lt;p&gt;The following should also work.&lt;/p&gt;


&lt;p&gt;&amp;lt;pre&amp;gt;&lt;/p&gt;

&lt;pre&gt;while (it != s.end()) {
   if (...)
       s.erase(it++);
   else
       ++it;
}&lt;/pre&gt;

&lt;p&gt;&amp;lt;/pre&amp;gt;&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Iterate &amp; Erase - Benoît Dejean</title>
    <link>http://www.placenet.org/benoit/index.php/post/2007/04/22/Iterate-Erase#c40</link>
    <guid isPermaLink="false">urn:md5:fa6fe51c599b2580e7b9a41fcf64d231</guid>
    <pubDate>Sun, 22 Apr 2007 09:58:53 +0200</pubDate>
    <dc:creator>Benoît Dejean</dc:creator>
    
    <description>&lt;p&gt;I am using next only at the end of the loop to move forward. Incrementing next doesn't increment it. I look at the current element using it, not next.&lt;/p&gt;</description>
  </item>
      
    
    <item>
    <title>Iterate &amp; Erase - anonymous coward</title>
    <link>http://www.placenet.org/benoit/index.php/post/2007/04/22/Iterate-Erase#c39</link>
    <guid isPermaLink="false">urn:md5:fa6400086850dc5dd6bd5e92153e071d</guid>
    <pubDate>Sun, 22 Apr 2007 02:59:26 +0200</pubDate>
    <dc:creator>anonymous coward</dc:creator>
    
    <description>&lt;p&gt;s.begin() points to the first element of s.&lt;br /&gt;
when you do ++next _before_ the if, you never look at the first element.&lt;br /&gt;
++next should be after the if.&lt;/p&gt;</description>
  </item>
      
</channel>
</rss>