avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
av::v2::SmartDeleter Struct Reference

Template facade over the per-type deleters of namespace v1. More...

#include <avutils.h>

Public Member Functions

template<typename T>
bool operator() (T *ptr)
 Free an FFmpeg object of type T.

Detailed Description

Lets a single std::unique_ptr<T, SmartDeleter> be written without naming the concrete FFmpeg type.

Member Function Documentation

◆ operator()()

template<typename T>
bool av::v2::SmartDeleter::operator() ( T * ptr)
inline
Template Parameters
Tthe FFmpeg type
Parameters
ptrthe object to free
Returns
whatever the matching v1 deleter reports

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