If I assign a new value too previously declared string using operator= , is it freed automatically or I have to free it manually?
std::string s("value_old");
s = "value_new";
what happens with "value_old"
where I can find or where are you always watching to find answer to similar questions? Thanks in advance.
Yes, it is freed automatically.
I suggest cplusplus.com for a handy online reference to STL.