Hey guys, I was wondering if the stringstream class copied the string to itself or just keeps a pointer.
Because if it copies I can free or clear the string without fearing for the data in stringstream.
string stringz0r("Chickenz"); stringstream streamz0r(stringz0r); //will this not affect the stringstream in any way? stringz0r.clear();
Or, maybe a bit more complicated:
string *stringz0r = new string("Chickenz"); stringstream *streamz0r = new stringstream(*stringz0r); //will this... delete stringz0r;
Thanks in advance,