The analogue of the uv::default_delete but for the type destructor only.
More...
#include "utility.hpp"
Public Types | |
| using | value_type = typename std::decay< _T_ >::type |
Public Member Functions | |
| template<typename _U_ , typename = std::enable_if_t< std::is_convertible< _U_*, _T_* >::value >> | |
| default_destroy (const default_destroy< _U_ > &) noexcept | |
| void | operator() (value_type *_) const |
Static Public Member Functions | |
| static void | Destroy (void *_) |
The analogue of the uv::default_delete but for the type destructor only.
Provides the static member function void Destroy(void*) holding the proper destructor call for the type _T_. The client code then can store a pointer to this function being alike a pointer to the virtual destructor for implementing the run-time data polymorphism.
Definition at line 60 of file utility.hpp.