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

std::basic_ios::swap

protected: void swap( basic_ios& other );

?

(since C++11)

交换状态*thisother,除了相关的rdbuf物品。rdbuf()other.rdbuf()返回与调用前相同的值。

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

参数

other

-

the basic_ios object to exchange the state with

返回值

%280%29

例外

noexcept规格:

noexcept

另见

move (C++11)

moves from another std::basic_ios except for rdbuf (protected member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com