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_ostream和std::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) |
|---|
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

