I have function foo which get std::string
as parameter:
void foo(std::string);
and I put a concatence string:
std::string str_1= "example_str_1";
std::string str_2 = "example_str_2";
foo(str_1+str_2);
It is a good way to use a concatence string with std::move
?
foo(std::move(str_1+str_2));
Is there any difference between put concatence with std::move
?