std::basic_ios<CharT,Traits>:: swap
| 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 ; |
(desde C++11) | |
Intercambia los estados de
*
this
y
other
, excepto por los objetos
rdbuf
asociados.
rdbuf()
y
other.
rdbuf
(
)
retornan los mismos valores que antes de la llamada.
Esta función swap está protegida: es llamada por las funciones miembro swap de las clases de flujo derivadas como std::basic_ofstream o std::basic_istringstream , que saben cómo intercambiar correctamente los búferes de flujo asociados.
Parámetros
| otro | - |
el objeto
basic_ios
con el que intercambiar el estado
|
Véase también
|
(C++11)
|
mueve desde otro
std::basic_ios
excepto por
rdbuf
(función miembro protegida) |