public member function
<streambuf> <iostream>

std::streambuf::operator=

streambuf& operator= (const streambuf& rhs);
Streambuf assignment
Copies the values of the internals of rhs into *this. This includes the internal pointers and the locale object.

Notice that both streambuf objects will be referring to the same internal buffers (not to copies).

This is a protected member provided for convenience in derived classes.

Parameters

rhs
A streambuf object whose internals are copied.

Return Value

*this

Data races

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

Exception safety

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

See also