I shall paraphrase the example that I often refer to, from Josuttis' The C++ Standard Library:Originally Posted by aryan1
Code:for (it = temp.begin(); it != temp.end();) { if (condition) { temp.erase(it++); } else { ++it; } }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Threaded View
|
Click Here to Expand Forum to Full Width |