Namespaces
Variants

std::basic_ios<CharT,Traits>:: move

From cppreference.net
protected :
void move ( basic_ios & other ) ;
(自 C++11 起)
protected :
void move ( basic_ios && other ) ;
(自 C++11 起)

将当前状态替换为 other 的状态,但不包括关联的 rdbuf 。调用后 other 处于有效但未指定的状态。调用此函数后, rdbuf() 返回空指针, other. rdbuf ( ) 返回与调用前相同的值,而 other. tie ( ) 返回空指针。

此成员函数为受保护函数:它由派生流类 std::basic_ostream std::basic_istream 的受保护移动构造函数调用,而这些移动构造函数又由进一步派生的流类(如 std::basic_ofstream )的公开移动构造函数调用,这些类知道如何正确移动关联的流缓冲区。

参数

其他 - 要从中转移状态的 basic_ios 对象

返回值

(无)

参见

(C++11)
与另一个 std::basic_ios 交换内容(不包括 rdbuf
(受保护成员函数)