MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / operator()

Method operator()

inst/tinytest/cpp/stack.cpp:83–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81struct FunctionObj {
82 FunctionObj(int data_, bool fail_) : data(data_), fail(fail_) { }
83 SEXP operator() () {
84 NumericVector x = maybeThrow(&fail);
85 x[0] = x[0] * data;
86 return x;
87 }
88 int data;
89 bool fail;
90};

Callers

nothing calls this directly

Calls 1

maybeThrowFunction · 0.85

Tested by

no test coverage detected