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

Method assign

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

Source from the content-addressed store, hash-verified

425
426 template <typename InputIterator>
427 void assign( InputIterator first, InputIterator last){
428 /* FIXME: we can do better than this r_cast to avoid
429 allocating an unnecessary temporary object
430 */
431 Shield<SEXP> wrapped(wrap(first, last));
432 Shield<SEXP> casted(r_cast<RTYPE>(wrapped));
433 Storage::set__(casted) ;
434 }
435
436 template <typename InputIterator>
437 static Vector import( InputIterator first, InputIterator last){

Callers 10

character_assign1Function · 0.45
character_assign2Function · 0.45
runit_assignFunction · 0.45
runit_islockedFunction · 0.45
vec_assignFunction · 0.45
vec_assignFunction · 0.45
ctor_signatureFunction · 0.45
importMethod · 0.45
setMethod · 0.45
vec_assignFunction · 0.45

Calls 1

wrapFunction · 0.50

Tested by

no test coverage detected