Files
2025-10-25 03:02:53 +03:00

1.5 KiB

[filebuf.assign]

31 Input/output library [input.output]

31.10 File-based streams [file.streams]

31.10.3 Class template basic_filebuf [filebuf]

31.10.3.3 Assignment and swap [filebuf.assign]

🔗

basic_filebuf& operator=(basic_filebuf&& rhs);

1

#

Effects: Calls close() then move assigns from rhs.

After the move assignment *this has the observable state it would have had if it had been move constructed from rhs (see [filebuf.cons]).

2

#

Returns: *this.

🔗

void swap(basic_filebuf& rhs);

3

#

Effects: Exchanges the state of *this and rhs.

🔗

template<class charT, class traits> void swap(basic_filebuf<charT, traits>& x, basic_filebuf<charT, traits>& y);

4

#

Effects: Equivalent to x.swap(y).