Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::tr1::shared_ptr is a type of smart pointer that can be copied safely and cheap, without copying the object pointed to. When the last std::tr1::shared_ptr using an object goes out of scope, it will delete the object pointedto.
#include <tr1/memory> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.