Would you like to wrap pointer data members or local variables with the template class "std::auto_ptr"?
http://en.wikipedia.org/wiki/Auto_ptr
http://auto-07p.svn.sourceforge.net/viewvc/auto-07p/trunk/auto/07p/plaut04/src/gmain.c%2B%2B?revision=2207&view=markup
http://auto-07p.svn.sourceforge.net/viewvc/auto-07p/trunk/auto/07p/plaut04/src/createDisk.c%2B%2B?revision=2055&view=markup