Search:
Reference
<memory>
default_delete
operator()
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:
::
delete
(ptr);
In the specialization for arrays with runtime length, this function is equivalent to:
::
delete
[](ptr);
Parameters
ptr
Pointer to an element to delete.
T
is
default_delete
's template parameter.
Return value
none
See also
unique_ptr::~unique_ptr
Destroy unique_ptr
(public member function )
C++
Information
Tutorials
Reference
Articles
Forum
Reference
C library:
<cassert> (assert.h)
<cctype> (ctype.h)
<cerrno> (errno.h)
<cfenv> (fenv.h)
<cfloat> (float.h)
<cinttypes> (inttypes.h)
<ciso646> (iso646.h)
<climits> (limits.h)
<clocale> (locale.h)
<cmath> (math.h)
<csetjmp> (setjmp.h)
<csignal> (signal.h)
<cstdarg> (stdarg.h)
<cstdbool> (stdbool.h)
<cstddef> (stddef.h)
<cstdint> (stdint.h)
<cstdio> (stdio.h)
<cstdlib> (stdlib.h)
<cstring> (string.h)
<ctgmath> (tgmath.h)
<ctime> (time.h)
<cuchar> (uchar.h)
<cwchar> (wchar.h)
<cwctype> (wctype.h)
Containers:
<array>
<deque>
<forward_list>
<list>
<map>
<queue>
<set>
<stack>
<unordered_map>
<unordered_set>
<vector>
Input/Output:
<fstream>
<iomanip>
<ios>
<iosfwd>
<iostream>
<istream>
<ostream>
<sstream>
<streambuf>
Multi-threading:
<atomic>
<condition_variable>
<future>
<mutex>
<thread>
Other:
<algorithm>
<bitset>
<chrono>
<codecvt>
<complex>
<exception>
<functional>
<initializer_list>
<iterator>
<limits>
<locale>
<memory>
<new>
<numeric>
<random>
<ratio>
<regex>
<stdexcept>
<string>
<system_error>
<tuple>
<typeindex>
<typeinfo>
<type_traits>
<utility>
<valarray>
<memory>
classes:
allocator
allocator_arg_t
allocator_traits
auto_ptr
auto_ptr_ref
bad_weak_ptr
default_delete
enable_shared_from_this
owner_less
pointer_traits
raw_storage_iterator
shared_ptr
unique_ptr
uses_allocator
weak_ptr
enum classes:
pointer_safety
functions:
addressof
align
allocate_shared
const_pointer_cast
declare_no_pointers
declare_reachable
dynamic_pointer_cast
get_deleter
get_pointer_safety
get_temporary_buffer
make_shared
return_temporary_buffer
static_pointer_cast
undeclare_no_pointers
undeclare_reachable
uninitialized_copy
uninitialized_copy_n
uninitialized_fill
uninitialized_fill_n
objects:
allocator_arg
default_delete
default_delete::default_delete
member functions:
default_delete::operator()