I need to merge a lot of strings into one. Something like this
stringstream ss;
string str_one = "hello ";
string str_two = "world!\n";
ss.add(str_one);
ss.add(str_two);
string result = ss.str();
but there is no add function into stringstream. How do I do this?