A deleter class that can be used with unique_ptr. More...
#include <zorba/internal/ztd.h>
Public Member Functions | |
destroy_delete () | |
template<typename U > | |
destroy_delete (destroy_delete< U > const &, typename std::enable_if< ZORBA_TR1_NS::is_convertible< U *, T * >::value >::type *=0) | |
Copy constructor. More... | |
void | operator() (T *p) |
Calls the destroy() member function of the pointed-to object. More... | |
A deleter class that can be used with unique_ptr.
Instead of calling delete
on the pointed-to object, it calls its destroy()
member function.
|
inline |
|
inline |
|
inline |