#include <memutils.h>
Public Types | |
typedef const T * | argument_type |
The argument type for this unary function. | |
typedef T * | result_type |
The return type for this unary function. | |
Public Member Functions | |
T * | operator() (const T *ptr) const |
Creates a new object using the copy constructor. |
This class is for use with the Standard Template Library.
Note that the template argument need not be a pointer class. If the template argument is T
, this unary function will accept a pointer to T
, dereference this pointer and pass it to the copy constructor to return a pointer to a newly created object of type T
.
typedef const T* regina::FuncNewCopyPtr< T >::argument_type |
The argument type for this unary function.
typedef T* regina::FuncNewCopyPtr< T >::result_type |
The return type for this unary function.
T* regina::FuncNewCopyPtr< T >::operator() | ( | const T * | ptr | ) | const [inline] |
Creates a new object using the copy constructor.
ptr | the pointer whose data should (after dereferencing) be passed to the copy constructor. |