takes a pointer and handles it safely wrt. exceptions, i.e. it is deleted when leaving the local context (follows STL implementation)
#include <autoptr.hh>