default_delete< _Tp[]> Struct Template Reference (original) (raw)
template<typename _Tp>
struct std::default_delete< _Tp[]>
Specialization of default_delete for arrays, used by unique_ptr<T[]>
Since
C++11
Definition at line 106 of file unique_ptr.h.
template<typename _Tp >
template<typename _Up , typename = _Require<is_convertible<_Up(*)[], _Tp(*)[]>>>
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 124 of file unique_ptr.h.