Audacity  2.3.1
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 958 of file FFmpeg.h.

Member Function Documentation

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

Definition at line 959 of file FFmpeg.h.

960  {
961  R result{};
962  if (p)
963  result = Fn(p);
964  return result;
965  }

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