| 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 | ||||
| State functions | ||||
| Formatting | ||||
| Miscellaneous | ||||
| Protected member functions | ||||
(C++11) | ||||
basic_ios::swap (C++11) | ||||
(C++11) |
protected: void swap( basic_ios& other)noexcept; | (since C++11) | |
Exchanges the states of*this andother, except for the associatedrdbuf objects.rdbuf() andother.rdbuf() returns the same values as before the call.
This swap function is protected: it is called by the swap member functions of the derived stream classes such asstd::basic_ofstream orstd::basic_istringstream, which know how to correctly swap the associated stream buffers.
| other | - | thebasic_ios object to exchange the state with |
(C++11) | moves from anotherstd::basic_ios except forrdbuf(protected member function)[edit] |