# Deleter

<a id="deleter-1"></a>

# Deleter

```cpp
#include <icy/av/ffmpeg.h>

template<typename T, typename R, R(*)(T *) Fn>
struct Deleter
```

[Defined in src/av/include/icy/av/ffmpeg.h:70](https://github.com/auscaster/icey/blob/main/src/av/include/icy/av/ffmpeg.h#L70)

RAII helpers for owning FFmpeg allocation types.

[Deleter](#deleter-1) adaptor for functions like av_free that take a pointer.

## Public Methods

| Return | Name | Description |
|--------|------|-------------|
| `void` | [`operator()`](#operator-144) `const` `inline` |  |

---

<a id="operator-144"></a>

### operator()

`const` `inline`

```cpp
inline void operator()(T * p) const
```

[Defined in src/av/include/icy/av/ffmpeg.h:72](https://github.com/auscaster/icey/blob/main/src/av/include/icy/av/ffmpeg.h#L72)
