+ 2
String stream is super useful when you are dynamically building a string. For example, you might be making your own XML document generator. Your XML is likely to have many values inserted in. You could just do string concatenation but that is tedious and will require more work. If you use string streams you can use the stream syntax and leverage the existing functionality to make the job much simpler.



