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. | |
void | operator() (T *p) |
Calls the destroy() member function of the pointed-to object. |
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.
zorba::internal::ztd::destroy_delete::destroy_delete | ( | ) | [inline] |
zorba::internal::ztd::destroy_delete::destroy_delete | ( | destroy_delete< U > const & | , |
typename std::enable_if< ZORBA_TR1_NS::is_convertible< U *, T * >::value >::type * | = 0 |
||
) | [inline] |
void zorba::internal::ztd::destroy_delete::operator() | ( | T * | p | ) | [inline] |