#include <Teuchos_RCPDecl.hpp>
Public Types | |
typedef T | ptr_t |
Public Member Functions | |
DeallocFunctorDelete (DeleteFunctor deleteFunctor) | |
void | free (T *ptr) |
Related Functions | |
(Note that these are not member functions.) | |
template<class T , class DeleteFunctor > | |
DeallocFunctorDelete< T, DeleteFunctor > | deallocFunctorDelete (DeleteFunctor deleteFunctor) |
A simple function used to create a functor deallocator object. |
Note, the only requirement is that deleteFuctor(ptr) can be called (which is true for a function pointer).
Note, a client should generally use the function deallocFunctorDelete()
to create this object and not try to construct it directly.
Definition at line 697 of file Teuchos_RCPDecl.hpp.
typedef T Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::ptr_t |
Definition at line 701 of file Teuchos_RCPDecl.hpp.
Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::DeallocFunctorDelete | ( | DeleteFunctor | deleteFunctor | ) | [inline] |
Definition at line 700 of file Teuchos_RCPDecl.hpp.
void Teuchos::DeallocFunctorDelete< T, DeleteFunctor >::free | ( | T * | ptr | ) | [inline] |
Definition at line 702 of file Teuchos_RCPDecl.hpp.
DeallocFunctorDelete< T, DeleteFunctor > deallocFunctorDelete | ( | DeleteFunctor | deleteFunctor | ) | [related] |
A simple function used to create a functor deallocator object.
Definition at line 715 of file Teuchos_RCPDecl.hpp.