ptrutils.h File Reference

Provides function objects for use in the Standard Template Library that take pointers as arguments but work with the pointees instead. More...


Namespaces

namespace  regina

Classes

class  regina::LessDeref< T, Comp >
 An adaptable binary function used to compare the objects to which pointers are pointing. More...

Functions

template<typename T>
T * regina::clonePtr (T *cloneMe)
 A simple routine for cloning an object if and only if it exists.
template<typename T>
T * regina::clonePtr (const std::auto_ptr< T > &cloneMe)
 A simple routine for cloning an object if and only if it exists.


Detailed Description

Provides function objects for use in the Standard Template Library that take pointers as arguments but work with the pointees instead.


Copyright © 1999-2007, Ben Burton
This software is released under the GNU General Public License.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@debian.org).