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

An adaptable unary function used to deallocate objects. More...

#include <utilities/memutils.h>

Public Types

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

Public Member Functions

void operator() (T *ptr) const
 Calls delete upon the given pointer. More...
 

Detailed Description

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

An adaptable unary function used to deallocate objects.

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 (and call delete upon) pointers to T.

Python
Not present.

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

Copyright © 1999-2021, 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).