23 #ifndef Rcpp_InternalFunctionWithStdFunction_h
24 #define Rcpp_InternalFunctionWithStdFunction_h
30 namespace InternalFunctionWithStdFunction {
32 #include <Rcpp/generated/InternalFunctionWithStdFunction_call.h>
34 template <
typename RESULT_TYPE,
typename... Args>
42 auto result = call<RESULT_TYPE, Args...>(
fun, args);
43 return Rcpp::module_wrap<RESULT_TYPE>(
result);
48 const std::function<RESULT_TYPE(Args...)>
fun;
51 template <
typename... Args>
59 call<void, Args...>(
fun, args);
64 const std::function<void(Args...)>
fun;
const std::function< void(Args...)> fun
CppFunctionBaseFromStdFunction(const std::function< void(Args...)> &fun)
virtual ~CppFunctionBaseFromStdFunction()
SEXP operator()(SEXP *args)
virtual ~CppFunctionBaseFromStdFunction()
const std::function< RESULT_TYPE(Args...)> fun
CppFunctionBaseFromStdFunction(const std::function< RESULT_TYPE(Args...)> &fun)
SEXP operator()(SEXP *args)