clone() method.
More...
#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 clone() method. | |
clone() method.
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 and call clone() upon the corresponding object, returning a pointer to the newly created clone of type T.
T has method T* clone() const. The declared return type may be different, but the result must be castable to T*.
|
|||||
|
The argument type for this unary function.
|
|
|||||
|
The return type for this unary function.
|
|
||||||||||
|
Creates a new object using the
|