tr1::shared_ptrs works “as expected,” they can be used in STL containers and other contexts where
auto_ptr's unorthodox copying behavior is inappropriate.
- 3. Resource Management
- from Effective C++: 55 Specific Ways to Improve Your Programs and Designs, Third Edition
- Publisher: Addison-Wesley Professional
- Released: May 2005
unique_ptrs can be put into STL containers, since they can be moved.
Share this highlighthttp://www.safaribooksonline.com/a/effective-c-55/2235221/