Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

regina::FuncNew< T > Struct Template Reference
[General Utility Classes]

An adaptable generator used to create objects using default constructors. More...

#include <memutils.h>

List of all members.

Public Types

typedef T * result_type
 The return type for this generator.

Public Member Functions

T * operator() () const
 Creates a new object using the default constructor.


Detailed Description

template<class T>
struct regina::FuncNew< T >

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.

Python:
Not present.


Member Typedef Documentation

template<class T>
typedef T* regina::FuncNew< T >::result_type
 

The return type for this generator.


Member Function Documentation

template<class T>
T* regina::FuncNew< T >::operator()  )  const [inline]
 

Creates a new object using the default constructor.

Returns:
the newly created object.


The documentation for this struct was generated from the following file:
Copyright © 1999-2004, 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).