boost_sqlite 1
A sqlite C++ library
Loading...
Searching...
No Matches
boost::sqlite::vtab::function_setter Struct Reference

Helper type to set a function through the xFindFunction callback. More...

#include <include/boost/sqlite/vtable.hpp>

Public Member Functions

template<typename Func >
void set (Func &func)
 

Detailed Description

Helper type to set a function through the xFindFunction callback.

Definition at line 31 of file vtable.hpp.

Member Function Documentation

◆ set()

template<typename Func >
void boost::sqlite::vtab::function_setter::set ( Func & func)
inline

Set the function

Template Parameters
FuncThe function type (either a lambda by ref or a pointer by copy)
Parameters
funcThe function to be used

The function can either take a single argument, a span<sqlite::value, N> for scalar functions, or a context<Args...> as first, and the span as second for aggegrate functions.

Definition at line 44 of file vtable.hpp.


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