
12 Jul
2008
12 Jul
'08
10:32 p.m.
Sid Sacek a écrit :
Isn't the 'unique_ptr<>' a replacement for the standard C++ auto_ptr<> that's going to be deprecated in the next standard?
It is both a replacement for std::auto_ptr & for boost::scoped_ptr : - It has single ownership, like scoped_ptr - It can transfert its ownership, like auto_ptr (but does so by move semantic, not by a a copy with a strange semantic). - It also has custom deleter semantic -- Loïc