22 #ifndef Rcpp__sugar__head_h
23 #define Rcpp__sugar__head_h
28 template <
int RTYPE,
bool NA,
typename T>
36 n =
object.size() +
n ;
43 inline R_xlen_t
size()
const {
return n; }
52 template <
int RTYPE,
bool NA,
typename T>
Rcpp::VectorBase< RTYPE, NA, T > VEC_TYPE
Head(const VEC_TYPE &object_, R_xlen_t n_)
Rcpp::traits::storage_type< RTYPE >::type STORAGE
STORAGE operator[](R_xlen_t i) const
sugar::Head< RTYPE, NA, T > head(const VectorBase< RTYPE, NA, T > &t, R_xlen_t n)