The template class basic_istringstream is derived from basic_istream and is used to associate input streams with an object of class basic_string.
The class basic_istringstream uses an object of type basic_stringbuf to control the associated storage.