std::basic_iostream<CharT,Traits>:: swap
From cppreference.net
<
cpp
|
io
|
basic iostream
C++
Input/output library
| 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)
|
std::basic_iostream
| Member functions | ||||
| Protected member functions | ||||
|
basic_iostream::swap
|
|
protected
:
void swap ( basic_iostream & other ) ; |
(C++11부터) | |
다른 입력/출력 스트림 객체와 상태를 교환합니다. 효과적으로 basic_istream < CharT,Traits > :: swap ( other ) 를 호출합니다.
이 멤버 함수는 protected입니다: 파생된 스트림 클래스인 std::basic_stringstream 과 std::basic_fstream 의 swap 멤버 함수들에 의해 호출되며, 이러한 클래스들은 연관된 스트림 버퍼를 올바르게 교환하는 방법을 알고 있습니다.
매개변수
| other | - | 상태를 교환할 다른 스트림 |
반환값
* this