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

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

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

#include <memutils.h>

List of all members.

Public Types

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

typedef void result_type
 The return type for this unary function.


Public Member Functions

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


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.


Member Typedef Documentation

template<class T>
typedef T* regina::FuncDelete< T >::argument_type
 

The argument type for this unary function.

template<class T>
typedef void regina::FuncDelete< T >::result_type
 

The return type for this unary function.


Member Function Documentation

template<class T>
void regina::FuncDelete< T >::operator() T *  ptr  )  const [inline]
 

Calls delete upon the given pointer.

Parameters:
ptr the pointer whose data should be deleted.


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