virtual basic_streambuf *setbuf(E *s, streamsize n);
The protected virtual member function performs an operation peculiar to each derived stream buffer. (See, for example, basic_filebuf.) The default behavior is to return this.
basic_filebuf
this