Audacity 3.2.0
Static Public Member Functions | List of all members
audacity::sqlite::details::SQLiteFunction< std::function< R()> > Struct Template Reference

#include <Function.h>

Static Public Member Functions

static SQLiteFunctor ToSQLiteFunctor (std::function< R()> callback)
 

Detailed Description

template<typename R>
struct audacity::sqlite::details::SQLiteFunction< std::function< R()> >

Definition at line 107 of file Function.h.

Member Function Documentation

◆ ToSQLiteFunctor()

template<typename R >
static SQLiteFunctor audacity::sqlite::details::SQLiteFunction< std::function< R()> >::ToSQLiteFunctor ( std::function< R()>  callback)
inlinestatic

Definition at line 109 of file Function.h.

110 {
111 return [function = std::move(callback)](sqlite3_context* context)
112 {
113 if constexpr (std::is_same_v<R, void>)
114 function();
115 else
116 SetSQLiteFunctionResult(context, function());
117 };
118 }
void SetSQLiteFunctionResult(sqlite3_context *context, bool value)
Definition: Function.cpp:84

References audacity::sqlite::details::SetSQLiteFunctionResult().

Here is the call graph for this function:

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