std::basic_fstream::swap
void swap( basic_fstream& other );  |   | (since C++11)  | 
|---|
将流的状态与other...
实现的办法是调用basic_iostream<CharT, Traits>::swap(other)和rdbuf()->swap(other.rdbuf())...
参数
other  | -  | stream to exchange the state with  | 
|---|
返回值
%280%29
例
另见
operator= (C++11)  | moves the file stream (public member function)  | 
|---|---|
swap (C++11)  | swaps two basic_filebuf objects (public member function of std::basic_filebuf)  | 
 © cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

