Is there any smart pointers available

Phil Edwards phil@jaj.com
Mon Feb 11 11:52:00 GMT 2002


On Mon, Feb 11, 2002 at 11:46:32AM -0800, Ajit wrote:
> Are there any smart pointers  available in libstdc++ .

Only what's in the standard C++ library:  std::auto_ptr, which isn't
a very smart "smart pointer".  Tips on auto_ptr are available from
http://gcc.gnu.org/libstdc++/documentation.html .

> I want to use the 
> STL containers using reference semantics.

For the moment you might want to have a look at Boost:  www.boost.org.

Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list