OpenTTD Source 20250905-master-g122023be8d
DeleterFromFunc< Tfunc > Struct Template Reference

Deleter that calls a function rather than deleting the pointer. More...

#include <autorelease.hpp>

Public Member Functions

template<typename T >
constexpr void operator() (T *arg) const
 

Detailed Description

template<auto Tfunc>
struct DeleterFromFunc< Tfunc >

Deleter that calls a function rather than deleting the pointer.

Definition at line 15 of file autorelease.hpp.

Member Function Documentation

◆ operator()()

template<auto Tfunc>
template<typename T >
constexpr void DeleterFromFunc< Tfunc >::operator() ( T *  arg) const
inlineconstexpr

Definition at line 17 of file autorelease.hpp.


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