Stream buffer to read from and write to string objects.
Objects of this class maintain internally a sequence of characters that they use as their associated input sequence and/or associated output sequence. The internal sequence can be initialized from a string object, or copied to one, using member str.
Access to the internal sequence of characters is given to streams by means of the interface offered by the virtual members inherited from streambuf that are overriden in this class: