29 #ifndef AURORA_PTRFUNCTORS_HPP
30 #define AURORA_PTRFUNCTORS_HPP
47 T* operator() (
const T* pointer)
const
49 return new T(*pointer);
60 T* operator() (
const T* pointer)
const
62 return pointer->clone();
72 void operator() (T* pointer)
83 #endif // AURORA_PTRFUNCTORS_HPP
Utilities for template metaprogramming.
Cloner that invokes a member function clone().
Definition: ClonersAndDeleters.hpp:58
Cloner that invokes the copy constructor and new operator.
Definition: ClonersAndDeleters.hpp:45
Deleter that invokes the delete operator.
Definition: ClonersAndDeleters.hpp:70
Definition: DispatchTraits.hpp:39