When would I use std::istringstream, std::ostringstream and std::stringstream and why shouldn\'t I just use std::stringstream
istringstream is for input, ostringstream for output. stringstream is input and output. You can use stringstream pretty much everywhere. However, if you give your object to another user, and it uses operator >> whereas you where waiting a write only object, you will not be happy ;-)
PS: nothing bad about it, just performance issues.