MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / r_vector_start

Function r_vector_start

inst/include/Rcpp/internal/r_vector.h:30–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29template <int RTYPE>
30typename Rcpp::traits::storage_type<RTYPE>::type* r_vector_start(SEXP x) {
31 typedef typename Rcpp::traits::storage_type<RTYPE>::type* pointer;
32 return reinterpret_cast<pointer>(dataptr(x));
33}
34
35// add specializations to avoid use of dataptr
36#define RCPP_VECTOR_START_IMPL(__RTYPE__, __ACCESSOR__) \

Callers

nothing calls this directly

Calls 1

dataptrFunction · 0.50

Tested by

no test coverage detected