std::default_delete< _Tp >

Section: C Library Functions (3)
Updated: Wed Apr 17 2019
Page Index
 

NAME

std::default_delete< _Tp > - Primary template of default_delete, used by unique_ptr.

 

SYNOPSIS


 

Public Member Functions


constexpr default_delete () noexcept=default
Default constructor.
template<typename _Up , typename = typename enable_if<is_convertible<_Up*, _Tp*>::value>::type> default_delete (const default_delete< _Up > &) noexcept
Converting constructor.
void operator() (_Tp *__ptr) const
Calls delete __ptr.  

Detailed Description

 

template<typename _Tp>


struct std::default_delete< _Tp >" Primary template of default_delete, used by unique_ptr.

Definition at line 59 of file unique_ptr.h.  

Constructor & Destructor Documentation

 

template<typename _Tp > constexpr std::default_delete< _Tp >::default_delete () [default], [noexcept]

Default constructor.  

template<typename _Tp > template<typename _Up , typename = typename enable_if<is_convertible<_Up*, _Tp*>::value>::type> std::default_delete< _Tp >::default_delete (const default_delete< _Up > &) [inline], [noexcept]

Converting constructor. Allows conversion from a deleter for arrays of another type, _Up, only if _Up* is convertible to _Tp*.

Definition at line 71 of file unique_ptr.h.  

Member Function Documentation

 

template<typename _Tp > void std::default_delete< _Tp >::operator() (_Tp * __ptr) const [inline]

Calls delete __ptr.

Definition at line 75 of file unique_ptr.h.

 

Author

Generated automatically by Doxygen for libstdc++ from the source code.


 

Index

NAME
SYNOPSIS
Public Member Functions
Detailed Description
template<typename _Tp>
Constructor & Destructor Documentation
template<typename _Tp > constexpr std::default_delete< _Tp >::default_delete () [default], [noexcept]
template<typename _Tp > template<typename _Up , typename = typename enable_if<is_convertible<_Up*, _Tp*>::value>::type> std::default_delete< _Tp >::default_delete (const default_delete< _Up > &) [inline], [noexcept]
Member Function Documentation
template<typename _Tp > void std::default_delete< _Tp >::operator() (_Tp * __ptr) const [inline]
Author