public member function
<streambuf> <iostream>

std::basic_streambuf::operator=

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

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

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

Parameters

rhs
A basic_streambuf object of the same type (with the same class template parameters charT and traits), 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