openPMD-api
Public Types | Public Member Functions | List of all members
openPMD::auxiliary::CustomDelete< T > Class Template Reference

Custom deleter type based on std::function. More...

#include <UniquePtr.hpp>

Inheritance diagram for openPMD::auxiliary::CustomDelete< T >:
Inheritance graph
[legend]
Collaboration diagram for openPMD::auxiliary::CustomDelete< T >:
Collaboration graph
[legend]

Public Types

using deleter_type = std::function< void(T_decayed *)>
 

Public Member Functions

deleter_type const & get_deleter () const
 
deleter_type & get_deleter ()
 
 CustomDelete (deleter_type func)
 

Detailed Description

template<typename T>
class openPMD::auxiliary::CustomDelete< T >

Custom deleter type based on std::function.

No need to interact with this class directly, used implicitly by UniquePtrWithLambda.

Has some special treatment for array types and falls back to std::default_delete by default.

Template Parameters
TThe to-be-deleted type, possibly an array.

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