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

Function test_move_ctor

inst/tinytest/cpp/String.cpp:57–62  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

55
56// [[Rcpp::export]]
57CharacterVector test_move_ctor() {
58 std::vector<String> v = { "test" };
59 String t = std::move( v[0] );
60 v.push_back( std::move( t ) );
61 return CharacterVector( v.begin(), v.end() );
62}
63
64// [[Rcpp::export]]
65String test_move_std_string_ctor() {

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected