std::auto_ptr std::vector, std::vector , , std::auto_ptr . , std::auto_ptr, , , . ( , auto_ptr , , , , ).
Use shared_ptrthat is often available like boost::shared_ptror in Visual C ++ std::tr1::shared_ptr, and which will be in the standard C ++ 0x library or use any Qt. They can be copied and therefore can be included in containers.
source
share