Audacity  3.0.3
Public Member Functions | List of all members
AV_Deleter< T, R, Fn > Struct Template Reference

AV_Deleter is part of FFmpeg support. It's used with the RAII idiom. More...

#include <FFmpeg.h>

Public Member Functions

operator() (T *p) const
 

Detailed Description

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

AV_Deleter is part of FFmpeg support. It's used with the RAII idiom.

Definition at line 935 of file FFmpeg.h.

Member Function Documentation

◆ operator()()

template<typename T , typename R , R(*)(T *) Fn>
R AV_Deleter< T, R, Fn >::operator() ( T *  p) const
inline

Definition at line 936 of file FFmpeg.h.

937  {
938  R result{};
939  if (p)
940  result = Fn(p);
941  return result;
942  }

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