protected member function
<ios> <iostream>

std::ios::set_rdbuf

void set_rdbuf (streambuf* sb);
Set stream buffer
Sets sb as the stream buffer associated with the stream, without altering the control state flag (rdstate).

sb shall not be a null pointer.

Derived classes can call this function to change the stream buffer.

Parameters

sb
Pointer to a streambuf object.
This shall not be a null pointer.

Return Value

none

Data races

Modifies the stream object.
Concurrent access to the same stream object may cause data races.

Exception safety

Basic guarantee: if an exception is thrown, the stream is in a valid state.

See also