Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #12723

Re: Please help me to choose a proper container

From "Waldek M." <wm@localhost.localdomain>
Newsgroups comp.lang.c++
Subject Re: Please help me to choose a proper container
Date 2011-12-21 08:44 +0100
Organization Mojito.pl
Message-ID <10jo293fenonh$.dlg@localhost.localdomain> (permalink)
References <3f159808-e36c-491d-bd20-de8edac1c6aa@x19g2000yqf.googlegroups.com> <71575443-9af7-4c18-9910-45cf38db0d65@o14g2000vbo.googlegroups.com>

Show all headers | View raw


On Tue, 20 Dec 2011 16:05:07 -0800 (PST), Christopher wrote:
> If you intend on using smart pointers, then I know that at least the
> boost::shared_ptr variety meet all the requirements to be used with
> and of the STL containers. So, why not just put them in a map?

Or better yet, std::tr1::shared_ptr, to avoid external
library (unless the OP has that already).
Also the std::tr1::weak_ptr might be required, depending on what the OP
really needs to do with the object (when are they destroyed).

Best regards,
Waldek

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Please help me to choose a proper container Jayden Shui <jayden.shui@gmail.com> - 2011-12-20 13:47 -0800
  Re: Please help me to choose a proper container Victor Bazarov <v.bazarov@comcast.invalid> - 2011-12-20 18:27 -0500
    Re: Please help me to choose a proper container legalize+jeeves@mail.xmission.com (Richard) - 2011-12-20 23:29 +0000
  Re: Please help me to choose a proper container Christopher <cpisz@austin.rr.com> - 2011-12-20 16:05 -0800
    Re: Please help me to choose a proper container "Waldek M." <wm@localhost.localdomain> - 2011-12-21 08:44 +0100
    Re: Please help me to choose a proper container Juha Nieminen <nospam@thanks.invalid> - 2011-12-21 07:50 +0000

csiph-web