ios::rdbuf

streambuf* rdbuf() const;

Return Value

Returns a pointer to the streambuf object that is associated with this stream. The rdbuf function is useful when you need to call streambuf member functions.

ios OverviewAbstract Stream Base Class