public member function
<memory>

std::default_delete::operator()

void operator()(T* ptr) const;
Functional call
Deletes ptr.

In the non-specialized template version, this function is equivalent to
1
::delete(ptr);

In the specialization for arrays with runtime length, this function is equivalent to
1
::delete[](ptr);

参数

ptr
Pointer to an element to delete.
Tis default_delete's template parameter.

返回值



另见