| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Member functions | ||||
basic_fstream::operator= (C++11) | ||||
(C++11) | ||||
(C++26) | ||||
| File operations | ||||
| Non-member functions | ||||
(C++11) |
basic_fstream& operator=( basic_fstream&& other); | (since C++11) | |
Move assigns the file streamother to*this, effectively move-assigning both thestd::basic_iostream base class and the associatedstd::basic_filebuf.
other is left with no associated file. Note that the base class move assignment swaps all stream state variables (except forrdbuf) between*this andother.
Contents |
| other | - | file stream to move |
*this
| This section is incomplete Reason: no example |
(C++11) | swaps two file streams (public member function)[edit] |
(C++11) | assigns abasic_filebuf object(public member function of std::basic_filebuf<CharT,Traits>)[edit] |
(C++11) | move-assigns anotherbasic_iostream(protected member function)[edit] |