When I convert a char*
to std::string
using the constructor:
char *ps = "Hello";
std::string str(ps);
I know that std containers tend to copy values when they are asked to store them.
Is the whole string copied or the pointer only?
if afterwards I do str = "Bye"
will that change ps to be pointing to "Bye"?