Given a string_view sv and a string s(sv), does s use the same char array internally as sv? Is it safe to say that when s is destroyed, sv is still valid?
>Solution :
Creating a std::string object always copies (or moves, if it can) the string, and handles its own memory internally.
For your example, the strings handled by sv and s are totally different and separate.