Topic: Smartpointer and the STL?
Author: Matt Austern <austern@isolde.mti.sgi.com>
Date: 1996/11/01 Raw View
Gerald Mesaric <gmesaric@iicm.tu-graz.ac.at> writes:
> is a template smartpointer implementation currently part of the
> Standard Template Library?
Depends on precisely what "smartpointer" means, and what "Standard
Template Library" means. The WP does include a template called
auto_ptr. Its semantics are a little bit tricky, but basically what
it does is that it has a notion of ownership of objects. Ownership
can be transferred, and an auto_ptr's destructor automatically
destroys the object that the auto_ptr points to if and only if that
auto_ptr owns the object. (See the comp.std.c++ FAQ list for more
details.)
Auto_ptr will be part of the standard C++ library. Some people,
though, use the phrase "Standard Template Library" only to refer
to those parts of the library that are based on the original
STL. This includes all of clauses 23, 24, and 25 of the
working paper, and also parts of clauses 20 and 26. In this
narrower sense, auto_ptr is not part of the Standard Template
Library.
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]
Author: Gerald Mesaric <gmesaric@iicm.tu-graz.ac.at>
Date: 1996/10/30 Raw View
Hi,
is a template smartpointer implementation currently part of the
Standard Template Library?
Cheers,
Gerald
--
----------------------------------------------------------------------------
Gerald Mesaric
gmesaric@iicm.edu
Institute for Information Processing and Computer Supported New Media
(IICM)
--- Austria/Europe/Earth ---
Voice: +43/316/873-5608 Fax:
+43/316/824394
----------------------------------------------------------------------------
HYPER-G NOW HYPERWAVE -- The Next Generation Web Solution
http://www.iicm.edu/hyperwave
---
[ comp.std.c++ is moderated. To submit articles: try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
[ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu ]