Teuchos - Trilinos Tools Package  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Related Functions | List of all members
Teuchos::DeallocFunctorDelete< T, DeleteFunctor > Class Template Reference

Deallocator subclass that Allows any functor object (including a function pointer) to be used to free an object. More...

#include <Teuchos_RCPDecl.hpp>

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. More...
 

Detailed Description

template<class T, class DeleteFunctor>
class Teuchos::DeallocFunctorDelete< T, DeleteFunctor >

Deallocator subclass that Allows any functor object (including a function pointer) to be used to free an 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 1041 of file Teuchos_RCPDecl.hpp.

Friends And Related Function Documentation

template<class T , class DeleteFunctor >
DeallocFunctorDelete< T, DeleteFunctor > deallocFunctorDelete ( DeleteFunctor  deleteFunctor)
related

A simple function used to create a functor deallocator object.

Definition at line 1059 of file Teuchos_RCPDecl.hpp.


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