Namespaces
Variants

std::basic_iostream<CharT,Traits>:: swap

From cppreference.net
protected :
void swap ( basic_iostream & other ) ;
(C++11부터)

다른 입력/출력 스트림 객체와 상태를 교환합니다. 효과적으로 basic_istream < CharT,Traits > :: swap ( other ) 를 호출합니다.

이 멤버 함수는 protected입니다: 파생된 스트림 클래스인 std::basic_stringstream std::basic_fstream 의 swap 멤버 함수들에 의해 호출되며, 이러한 클래스들은 연관된 스트림 버퍼를 올바르게 교환하는 방법을 알고 있습니다.


매개변수

other - 상태를 교환할 다른 스트림

반환값

* this