std::basic_ios::move

来自cppreference.com
< cpp‎ | io‎ | basic ios

protected:
void move( basic_ios& other );
(C++11 起)
protected:
void move( basic_ios&& other );
(C++11 起)
替换当前状态的other除了关联rdbufother是有效的,但是未指定状态后调用。调用这个函数后,rdbuf()NULLother.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_ostreamstd::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
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 返回值

(无)
原文:
(none)
文本通过谷歌翻译机器翻译。
你可以帮忙校正和验证翻译。点击此处查看指示。

[编辑] 另请参阅

与另一个不是rdbufstd::basic_ios交换内容
(受保护成员函数) [编辑]