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

Function character_assign2

inst/tinytest/cpp/Vector.cpp:523–532  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

521
522// [[Rcpp::export]]
523CharacterVector character_assign2(){
524 std::vector<std::string> vec(4) ;
525 vec[0] = "foo";
526 vec[1] = "bar";
527 vec[2] = "bling";
528 vec[3] = "boom" ;
529 CharacterVector y ;
530 y.assign( vec.begin(), vec.end() ) ;
531 return y;
532}
533
534// [[Rcpp::export]]
535CharacterVector character_range_ctor1(){

Callers

nothing calls this directly

Calls 3

assignMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected