MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / InternalFunction_Impl

Function InternalFunction_Impl

inst/include/Rcpp/InternalFunction.h:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38 template <typename RESULT_TYPE, typename... Args>
39 InternalFunction_Impl(const std::function<RESULT_TYPE(Args...)> &fun) {
40 set(
41 XPtr<Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction<RESULT_TYPE, Args...> >(
42 new Rcpp::InternalFunctionWithStdFunction::CppFunctionBaseFromStdFunction<RESULT_TYPE, Args...>(fun),
43 false
44 )
45 );
46 }
47 template <typename RESULT_TYPE, typename... T>
48 InternalFunction_Impl(RESULT_TYPE (*fun)(T...)) {
49 set(XPtr<CppFunctionN<RESULT_TYPE, T...> >(new CppFunctionN<RESULT_TYPE, T...>(fun), true));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected