20 General utilities library [utilities]
namespace std {
template<class T> struct default_delete {
constexpr default_delete() noexcept = default;
template<class U> default_delete(const default_delete<U>&) noexcept;
void operator()(T*) const;
};
}
template<class U> default_delete(const default_delete<U>& other) noexcept;
Constraints: U* is implicitly convertible to
T*. Effects: Constructs a
default_delete object
from another
default_delete<U> object
. void operator()(T* ptr) const;
Mandates: T is a complete type
. Effects: Calls
delete on
ptr.