Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ swap
Method
swap
inst/include/Rcpp/vector/generic_proxy.h:75–79 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
73
operator int() const { return ::Rcpp::as<int>(get()) ; }
74
75
void swap(generic_proxy& other){
76
Shield<SEXP> tmp(get()) ;
77
set( other.get() ) ;
78
other.set(tmp) ;
79
}
80
81
VECTOR* parent;
82
R_xlen_t index ;
Callers
nothing calls this directly
Calls
3
get
Function · 0.85
get
Method · 0.45
set
Method · 0.45
Tested by
no test coverage detected