Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ operator()
Method
operator()
inst/include/Rcpp/protection/Shelter.h:28–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
Shelter() : nprotected(0) {}
27
28
inline SEXP operator()(SEXP x) {
29
if (x != R_NilValue) nprotected++;
30
return Rcpp_protect(x);
31
}
32
33
~Shelter(){
34
Rcpp_unprotect(nprotected);
Callers
nothing calls this directly
Calls
1
Rcpp_protect
Function · 0.85
Tested by
no test coverage detected