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

Function call_impl

inst/include/Rcpp/internal/call.h:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19template <typename F, typename RESULT_TYPE, typename... Us, int... Is,
20 typename std::enable_if<!std::is_void<RESULT_TYPE>::value>::type* = nullptr>
21SEXP call_impl(const F& fun, SEXP* args, type_pack<RESULT_TYPE, Us...>,
22 traits::index_sequence<Is...>) {
23 RESULT_TYPE res = fun((typename traits::input_parameter<Us>::type(args[Is]))...);
24 return Rcpp::module_wrap<RESULT_TYPE>(res);
25}
26
27template <typename F, typename RESULT_TYPE, typename... Us, int... Is,
28 typename std::enable_if<std::is_void<RESULT_TYPE>::value>::type* = nullptr>

Callers 1

callFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected