首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::basic_iostream::swap

protected: void swap( basic_iostream& other );

?

(since C++11)

将状态与另一个输入/输出流对象交换。有效呼叫basic_istream<CharT,Traits>::swap(other)...

此成员函数受到保护:它由派生流类的交换成员函数调用。std::basic_stringstreamstd::basic_fstream,它们知道如何正确交换关联的流缓冲区。

参数

other

-

another stream to exchange the state with

返回值

*this...

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com