Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::movelib::default_delete< T > Struct Template Reference

The class template default_delete serves as the default deleter (destruction policy) for the class template unique_ptr. More...

#include <default_delete.hpp>

Public Types

typedef bmupmu::remove_extent
< T >::type 
element_type
 

Public Member Functions

BOOST_CONSTEXPR default_delete () BOOST_NOEXCEPT=default
 Default constructor. More...
 
template<class U >
 default_delete (const default_delete< U > &) BOOST_NOEXCEPT
 Effects: Constructs a default_delete object from another default_delete<U> object. More...
 

Detailed Description

template<class T>
struct boost::movelib::default_delete< T >

The class template default_delete serves as the default deleter (destruction policy) for the class template unique_ptr.

Template Parameters
TThe type to be deleted. It may be an incomplete type

Member Typedef Documentation

template<class T >
typedef bmupmu::remove_extent<T>::type boost::movelib::default_delete< T >::element_type

Constructor & Destructor Documentation

template<class T >
BOOST_CONSTEXPR boost::movelib::default_delete< T >::default_delete ( )
default

Default constructor.

template<class T >
template<class U >
boost::movelib::default_delete< T >::default_delete ( const default_delete< U > &  )
inline

Effects: Constructs a default_delete object from another default_delete<U> object.

Remarks: This constructor shall not participate in overload resolution unless:

  • If T is not an array type and U* is implicitly convertible to T*.
  • If T is an array type and U* is a more CV qualified pointer to remove_extent<T>::type.

References boost::BOOST_STATIC_ASSERT(), and boost::program_options::value().


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