Namespaces
Variants
Views
Actions

std::default_delete::default_delete

From cppreference.com
< cpp‎ | memory‎ | default delete
Revision as of 17:36, 13 November 2012 by Nate (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
 
 
 
 
 

Template:ddcl list begin <tr class="t-dcl ">

<td >
constexpr default_delete = default;
</td>

<td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
template <class U>
default_delete( const default_delete<U>& d );
</td>

<td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end

1) Constructs a std::default_delete object.
2) Constructs a std::default_delete object from another std::default_delete object. This constructor will only participate in overload resolution if U* is implicitly convertible to T*.

Parameters

d - a deleter to copy from

Exceptions

noexcept specification:  
noexcept
  

Example