#include <memutils.h>
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. | |
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.
| typedef T* regina::FuncDelete< T >::argument_type |
The argument type for this unary function.
| typedef void regina::FuncDelete< T >::result_type |
The return type for this unary function.
| void regina::FuncDelete< T >::operator() | ( | T * | ptr | ) | const [inline] |
Calls delete upon the given pointer.
| ptr | the pointer whose data should be deleted. |