basic_ios::rdbuf

basic_ios::rdbuf

basic_streambuf<E, T> *rdbuf() const;
basic_streambuf<E, T> *rdbuf(basic_streambuf<E, T> *sb);

The member function returns the stored stream buffer pointer.