Boost logo

Boost Users :

Subject: Re: [Boost-users] for_each on boost::ptr_map
From: Peter Barker (newbarker_at_[hidden])
Date: 2008-09-16 10:33:48


> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net