std::basic_ios::move
来自cppreference.com
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
protected: void move( basic_ios& other ); |
(C++11 起) | |
protected: void move( basic_ios&& other ); |
(C++11 起) | |
替换当前状态的
other
除了关联rdbuf
。 other
是有效的,但是未指定状态后调用。调用这个函数后,rdbuf()
NULL,other.rdbuf()返回返回相同的值,在调用之前.原文:
Replaces the current state with that of
other
, except for the associated rdbuf
. other
is in valid, but unspecified state after the call. After the call to this function, rdbuf()
returns NULL, and other.rdbuf() returns the same value as before the call.这个成员函数是被保护的,它被称为受保护的举措的派生流类的构造函数std::basic_ostream和std::basic_istream,其中,反过来,被称为公众移动的建设者进一步的派生类,如std::basic_ofstream流,知道如何正确地移动相关的streambuffer.
原文:
This member function is protected: it is called by the protected move constructors of the derived stream classes std::basic_ostream and std::basic_istream, which, in turn, are called by the public move constructors of the further derived stream classes such as std::basic_ofstream, which know how to correctly move the associated streambuffer.
[编辑] 参数
other | - | basic_ios 对象的状态转移原文: the basic_ios object to transfer the state from |
[编辑] 返回值
(无)
[编辑] 另请参阅
掉期与其他std::basic_ios除了 rdbuf 原文: swaps with another std::basic_ios except for rdbuf (受保护的成员函数) |