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

std::basic_ios::move

protected: void move( basic_ios& other );

?

(since C++11)

protected: void move( basic_ios&& other );

?

(since C++11)

将当前状态替换为other,除了相关的rdbuf...other在调用后处于有效但未指定的状态。在调用这个函数之后,rdbuf()回报NULL,,,other.rdbuf()返回与调用前相同的值,并且other.tie()返回0。

此成员函数是受保护的:它由派生流类的受保护的移动构造函数调用。std::basic_ostreamstd::basic_istream,它们反过来由进一步派生的流类的公共迁移构造函数调用,如std::basic_ofstream,它们知道如何正确移动关联的流缓冲区。

参数

other

-

the basic_ios object to transfer the state from

返回值

%280%29

另见

swap (C++11)

swaps with another std::basic_ios except for rdbuf (protected member function)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com