std::basic_fstream<CharT,Traits>::swap
来自cppreference.com
                    
                                        
                    < cpp | io | basic fstream
                    
                                                            
                    
|   void swap( basic_fstream& other );  | 
(C++11 起) | |
交换流与 other 的状态。
通过调用 basic_iostream<CharT, Traits>::swap(other) 和 rdbuf()->swap(other.rdbuf()) 进行。
参数
| other | - | 要交换状态的流 | 
返回值
(无)
异常
可能会抛出由实现定义的异常。
示例
| 本节未完成 原因:暂无示例  | 
参阅
|    (C++11)  | 
  移动文件流  (公开成员函数)  | 
|    (C++11)  | 
  交换两个 basic_filebuf 对象 ( std::basic_filebuf<CharT,Traits> 的公开成员函数)  |