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

Function xptr_access_released

inst/tinytest/cpp/XPtr.cpp:67–74  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

65
66// [[Rcpp::export]]
67bool xptr_access_released( XPtr< std::vector<int> > p) {
68
69 // double-release should be a no-op
70 p.release();
71
72 // get should return NULL
73 return p.get() == NULL;
74}
75
76// [[Rcpp::export]]
77int xptr_use_released( XPtr< std::vector<int> > p ) {

Callers

nothing calls this directly

Calls 2

releaseMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected