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

Function value

inst/include/Rcpp/Promise.h:50–53  ·  view source on GitHub ↗

* Return the result of the PRVALUE macro on the promise */

Source from the content-addressed store, hash-verified

48 * Return the result of the PRVALUE macro on the promise
49 */
50 SEXP value() const{
51 if (!was_evaluated()) throw unevaluated_promise();
52 return PRVALUE(Storage::get__());
53 }
54
55 bool was_evaluated() const {
56#if R_VERSION < R_Version(4,6,0)

Callers

nothing calls this directly

Calls 1

was_evaluatedFunction · 0.85

Tested by

no test coverage detected