28 Input/output library [input.output]

28.8 String-based streams [string.streams]

28.8.5 Class template basic_­stringstream [stringstream]

28.8.5.3 Member functions [stringstream.members]

basic_stringbuf<charT, traits, Allocator>* rdbuf() const;
Returns: const_­cast<basic_­stringbuf<charT, traits, Allocator>*>(addressof(sb)).
basic_string<charT, traits, Allocator> str() const;
Returns: rdbuf()->str().
void str(const basic_string<charT, traits, Allocator>& str);
Effects: Calls rdbuf()->str(str).