Namespaces
Variants
Views
Actions

std::unique_ptr<T,Deleter>::get_deleter

From cppreference.com
< cpp‎ | memory‎ | unique ptr
Revision as of 13:36, 15 June 2012 by P12bot (Talk | contribs)

 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
Dynamic memory management
Uninitialized memory algorithms
Constrained uninitialized memory algorithms
Allocators
Garbage collection support
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)
(C++11)(until C++23)



 
 

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

<td >
      Deleter& get_deleter();
</td>

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

<td >
const Deleter& get_deleter() const;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Returns the deleter object which would be used for destruction of the managed object.

Contents

Parameters

(none)

Return value

The stored deleter object.

Exceptions

noexcept specification:  
noexcept
  

Example