libstdc++
|
#include <unique_ptr.h>
Public Member Functions | |
constexpr | default_delete () noexcept=default |
template<typename _Up , typename = _Require<is_convertible<_Up(*)[], _Tp(*)[]>>> | |
_GLIBCXX23_CONSTEXPR | default_delete (const default_delete< _Up[]> &) noexcept |
template<typename _Up > | |
_GLIBCXX23_CONSTEXPR enable_if< is_convertible< _Up(*)[], _Tp(*)[]>::value >::type | operator() (_Up *__ptr) const |
Specialization of default_delete for arrays, used by unique_ptr<T[]>
Definition at line 104 of file unique_ptr.h.
|
constexprdefaultnoexcept |
Default constructor.
|
inlinenoexcept |
Converting constructor.
Allows conversion from a deleter for arrays of another type, such as a const-qualified version of _Tp
.
Conversions from types derived from _Tp
are not allowed because it is undefined to delete[]
an array of derived types through a pointer to the base type.
Definition at line 122 of file unique_ptr.h.
|
inline |
Calls delete[] __ptr
Definition at line 128 of file unique_ptr.h.