27
Input/output library
[input.output]
27.6
Stream buffers
[stream.buffers]
27.6.3
Class template
basic_streambuf
[streambuf]
27.6.3.3
basic_streambuf
protected member functions
[streambuf.protected]
27.6.3.3.1
Assignment
[streambuf.assign]
🔗
basic_streambuf& operator=(const basic_streambuf& rhs);
1
#
Effects:
Assigns the data members of
rhs
to
*this
.
2
#
Ensures:
(2.1)
eback() == rhs.eback()
(2.2)
gptr() == rhs.gptr()
(2.3)
egptr() == rhs.egptr()
(2.4)
pbase() == rhs.pbase()
(2.5)
pptr() == rhs.pptr()
(2.6)
epptr() == rhs.epptr()
(2.7)
getloc() == rhs.getloc()
3
#
Returns:
*this
.
🔗
void swap(basic_streambuf& rhs);
4
#
Effects:
Swaps the data members of
rhs
and
*this
.