Boost logo

Boost Users :

Subject: Re: [Boost-users] Please help me to choose a container
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-12-20 19:07:11


On 20 December 2011 17:53, Jayden Shui <jayden.shui_at_[hidden]> wrote:

> Do I need  std::set/map< shared_ptr<scoped_ptr<B>>, your_compare > to do it,
> since it is the B* shared? Thanks a lot.

Yes. In addition, you'll have to erase then insert whenever you
change the object which scoped_ptr<B> holds, unless you have some
other way of guaranteeing that B::Name() won't change when the object
changes. Multiindex might be easier to use in this respect.

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404

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