std::basic_ios<CharT,Traits>:: move
| I/O manipulators | ||||
| Print functions (C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(C++20)
|
||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(C++23)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
|
(
C++98/26*
)
|
||||
| Synchronized Output | ||||
|
(C++20)
|
||||
| Types | ||||
| Error category interface | ||||
|
(C++11)
|
||||
|
(C++11)
|
| Member functions | ||||
| State functions | ||||
| Formatting | ||||
| Miscellaneous | ||||
| Protected member functions | ||||
|
basic_ios::move
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
|
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
)
(受保护成员函数) |