Valid But Unspecified
std::string a = "long enough that this string is definitely heap allocated";
std::string b = std::move(a);
a += "!";
std::cout << a.size() << " " << a.front() << "\n";
Which statement is guaranteed by the standard?
Sign in to answer questions and track your progress
Sign In