std::basic_iostream::swap
性病:基本[医]iostream::SWAP
protected: void swap( basic_iostream& other | | (since C++11) |
---|
将状态与另一个输入/输出流对象交换。有效呼叫basic_istream<CharT,Traits>::swap(other)...
此成员函数受到保护:它由派生流类的交换成员函数调用。std::basic_stringstream
和std::basic_fstream
,它们知道如何正确交换关联的流缓冲区。
参数
other | - | another stream to exchange the state with |
---|
返回值
*this
...
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。