
16 Sep
2008
16 Sep
'08
2:33 p.m.
Ah I see,.... so the code for ptr_map is intended to be as much like the code for std::map as possible! Got it now, thanks.
- Rob.
I think they were designed with that ease of transition in mind. I've never used them before so probably not the best person to answer but good to talk to someone about them as it helps us all to learn! The main benefit seems to be they delete the pointed to objects when the container goes out of scope. A std::map would not attempt to do this. Regards, Pete