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

Public Types

typedef default_delete< _Ty > _Myt
 

Public Member Functions

 default_delete () _NOEXCEPT
 
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
 

Member Typedef Documentation

template<class _Ty >
typedef default_delete<_Ty> default_delete< _Ty >::_Myt

Constructor & Destructor Documentation

template<class _Ty >
default_delete< _Ty >::default_delete ( )
inline
1186  { // default construct
1187  }
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
1193  { // construct from another default_delete
1194  }

Member Function Documentation

template<class _Ty >
void default_delete< _Ty >::operator() ( _Ty *  _Ptr) const
inline
1197  { // delete a pointer
1198  static_assert(0 < sizeof (_Ty),
1199  "can't delete an incomplete type");
1200  delete _Ptr;
1201  }

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