Regina Calculation Engine
|
An adaptable generator used to create objects using default constructors. More...
#include <utilities/memutils.h>
Public Types | |
typedef T * | result_type |
The return type for this generator. More... | |
Public Member Functions | |
T * | operator() () const |
Creates a new object using the default constructor. More... | |
An adaptable generator used to create objects using default constructors.
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 generator will return a pointer to a newly created object of type T
.
typedef T* regina::FuncNew< T >::result_type |
The return type for this generator.
|
inline |
Creates a new object using the default constructor.