22nd Jun 2011
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.
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.
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!
Keeping it low-key this week, let's re-iterate (lol) the conventional map-erase idiom in C++.