22 #ifndef Rcpp__sugar__rev_h
23 #define Rcpp__sugar__rev_h
28 template <
int RTYPE,
bool NA,
typename T>
38 return object[
n - i] ;
40 inline R_xlen_t
size()
const {
return n + 1; }
49 template <
int RTYPE,
bool NA,
typename T>
STORAGE operator[](R_xlen_t i) const
Rcpp::traits::storage_type< RTYPE >::type STORAGE
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
Rev(const VEC_TYPE &object_)
sugar::Rev< RTYPE, NA, T > rev(const VectorBase< RTYPE, NA, T > &t)