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

Method import_sugar_expression

inst/include/Rcpp/vector/Vector.h:1064–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1062 // we are importing a real sugar expression, i.e. not a vector
1063 template <bool NA, typename VEC>
1064 inline void import_sugar_expression( const Rcpp::VectorBase<RTYPE,NA,VEC>& other, traits::false_type ) {
1065 RCPP_DEBUG_4( "Vector<%d>::import_sugar_expression( VectorBase<%d,%d,%s>, false_type )", RTYPE, NA, RTYPE, DEMANGLE(VEC) ) ;
1066 R_xlen_t n = other.size() ;
1067 Storage::set__( Rf_allocVector( RTYPE, n ) ) ;
1068 import_expression<VEC>( other.get_ref() , n ) ;
1069 }
1070
1071 // we are importing a sugar expression that actually is a vector
1072 template <bool NA, typename VEC>

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected