openPMD-api
 
Loading...
Searching...
No Matches
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 >:

Public Types

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

Public Member Functions

 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 files: