STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
default_delete< _Ty > Struct Template Reference

Public Member Functions

constexpr default_delete () _NOEXCEPT=default
 
template<class _Ty2 , class = typename enable_if<is_convertible<_Ty2 *, _Ty *>::value, void>::type>
 default_delete (const default_delete< _Ty2 > &) _NOEXCEPT
 
void operator() (_Ty *_Ptr) const _NOEXCEPT
 

Constructor & Destructor Documentation

template<class _Ty >
constexpr default_delete< _Ty >::default_delete ( )
default
template<class _Ty >
template<class _Ty2 , class = typename enable_if<is_convertible<_Ty2 *, _Ty *>::value, void>::type>
default_delete< _Ty >::default_delete ( const default_delete< _Ty2 > &  )
inline
1188  { // construct from another default_delete
1189  }

Member Function Documentation

template<class _Ty >
void default_delete< _Ty >::operator() ( _Ty *  _Ptr) const
inline
1192  { // delete a pointer
1193  static_assert(0 < sizeof (_Ty),
1194  "can't delete an incomplete type");
1195  delete _Ptr;
1196  }

The documentation for this struct was generated from the following file: