std::basic_iostream::swap
来自cppreference.com
< cpp | io | basic iostream
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
protected: void swap( basic_iostream& other ); |
(C++11 起) | |
Exchanges the state with another input/output stream object. Effectively calls basic_istream<CharT,Traits>::swap(other).
This member function is protected: it is called by the swap member functions of the derived stream classes std::basic_stringstream and std::basic_fstream, which know how to correctly swap the associated stream buffers.
[编辑] 参数
other | - | another stream to exchange the state with |
[编辑] 返回值
*this