basic_ios::set_rdbuf

Assigns a stream buffer to be the read buffer for this stream object.

void set_rdbuf(
    basic_streambuf<Elem, Tr> *_Strbuf
)

Parameters

  • _Strbuf
    The stream buffer to become the read buffer.

Remarks

The protected member function stores _Strbuf in the stream buffer pointer.It does not call clear.

Requirements

Header: <ios>

Namespace: std

See Also

Reference

basic_ios Class

iostream Programming

iostreams Conventions

Other Resources

basic_ios Members