OpenTTD Source: DeleterFromFunc< Tfunc > Struct Template Reference

OpenTTD Source 15.3

Public Member Functions
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:

- src/misc/autorelease.hpp