Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ Rev
Method
Rev
inst/include/Rcpp/sugar/functions/rev.h:34–35 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
32
typedef typename Rcpp::traits::storage_type<RTYPE>::type STORAGE ;
33
34
Rev( const VEC_TYPE& object_ ) :
35
object(object_), n(object_.size() - 1) {}
36
37
inline STORAGE operator[]( R_xlen_t i ) const {
38
return object[n - i] ;
Callers
nothing calls this directly
Calls
1
size
Method · 0.45
Tested by
no test coverage detected