std::basic_ios<CharT,Traits>::swap
来自cppreference.com
                    
                                        
                    
                    
                                                            
                    |   protected: void swap( basic_ios& other ) noexcept;  | 
(C++11 起) | |
交换 *this 与 other 的状态,除了关联的 rdbuf 对象。 rdbuf() 和 other.rdbuf() 返回与调用前相同的值。
此 swap 函数受保护:它为派生流类,如 std::basic_ofstream 或 std::basic_istringstream 的成员函数所调用,它们知道如何正确地交换关联的流缓冲。
参数
| other | - |  要与之交换状态的 basic_ios 对象
 | 
返回值
(无)
参阅
|    (C++11)  | 
  从另一 std::basic_ios 移动,除了 rdbuf  (受保护成员函数)  |