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

Function test_move_assignment

inst/tinytest/cpp/String.cpp:71–75  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

69
70// [[Rcpp::export]]
71CharacterVector test_move_assignment() {
72 std::vector<String> v = { "test", "abc" };
73 v[1] = std::move( v[0] );
74 return CharacterVector( v.begin(), v.end() );
75}
76
77// [[Rcpp::export]]
78String test_move_std_string_assignment() {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected