How can I concatenate two stringstreams?
#include #include #include #include #include <
More generically across iostreams:
std::istream is1, is2; // eg. (i)stringstream std::ostream os; // eg. (o)stringstream os << is1.rdbuf(); os << is2.rdbuf(); os << std::flush;
This works for filestreams, std::cin etc. as well as for stringstream