Regina Calculation Engine
Public Types | Public Member Functions | Public Attributes | List of all members
regina::FuncNewCopyPtr< T > Struct Template Reference

An adaptable unary function used to create objects using copy constructors. More...

#include <utilities/memutils.h>

Public Types

typedef T * result_type
 The return type for this unary function. More...
 

Public Member Functions

T * operator() (const T *ptr) const
 Creates a new object using the copy constructor. More...
 

Public Attributes

const typedef T * argument_type
 The argument type for this unary function. More...
 

Detailed Description

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

An adaptable unary function used to create objects using copy 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 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.

Python:\n Not present.

The documentation for this struct was generated from the following file:

Copyright © 1999-2016, The Regina development team
This software is released under the GNU General Public License, with some additional permissions; see the source code for details.
For further information, or to submit a bug or other problem, please contact Ben Burton (bab@maths.uq.edu.au).