123
std::string s2 = "world"; std::string s1 = s2.substr(1); // move constructor s1 = s2.substr(3); // move assignment