openPMD-api
|
Custom deleter type based on std::function. More...
#include <UniquePtr.hpp>
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) | |
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.
T | The to-be-deleted type, possibly an array. |