Files
cppdraft_translate/cppdraft/streambuf/assign.md
2025-10-25 03:02:53 +03:00

1.3 KiB

[streambuf.assign]

31 Input/output library [input.output]

31.6 Stream buffers [stream.buffers]

31.6.3 Class template basic_streambuf [streambuf]

31.6.3.4 Protected member functions [streambuf.protected]

31.6.3.4.1 Assignment [streambuf.assign]

🔗

basic_streambuf& operator=(const basic_streambuf& rhs);

1

#

Postconditions:

eback() == rhs.eback()

gptr() == rhs.gptr()

egptr() == rhs.egptr()

pbase() == rhs.pbase()

pptr() == rhs.pptr()

epptr() == rhs.epptr()

getloc() == rhs.getloc()

2

#

Returns: *this.

🔗

void swap(basic_streambuf& rhs);

3

#

Effects: Swaps the data members of rhs and *this.