Namespaces
Variants
Views
Actions

std::unique_ptr::get_deleter

From cppreference.com
 
 
 
 
 
      Deleter& get_deleter();
(since C++11)
const Deleter& get_deleter() const;
(since C++11)

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

Contents

[edit] Parameters

(none)

[edit] Return value

The stored deleter object.

[edit] Exceptions

noexcept specification:  
noexcept
  (since C++11)

[edit] Example