Tom Lachecki

(Tomalak Geret'kal)

Iterator Invalidation Rules (C++0x)

A version of my previous post (a tidy, all-in-one table of all the C++03 container iterator invalidation rules) updated for C++0x.

Iterator Invalidation Rules (C++03)

I've not found a tidy, all-in-one table of all the C++03 container iterator invalidation rules. So, with references, here they are!

Tomalak's Tuesday Tip #10: How to Iterate-Erase Over Maps

Keeping it low-key this week, let's re-iterate (lol) the conventional map-erase idiom in C++.