std::basic_ifstream<CharT,Traits>::operator=
来自 cppreference.cn
< cpp | io | basic ifstream
basic_ifstream& operator=( basic_ifstream&& other ); |
(since C++11) | |
移动赋值文件流 other 给 *this,有效地移动赋值 std::basic_istream 基类和关联的 std::basic_filebuf。
other 不再关联任何文件。注意,基类移动赋值会交换 *this 和 other 之间的所有流状态变量(除了 rdbuf 之外)。
目录 |
[编辑] 参数
other | - | 要移动的文件流 |
[编辑] 返回值
*this
[编辑] 示例
此章节不完整 原因:没有示例 |
[编辑] 参见
(C++11) |
交换两个文件流 (public member function) |
(C++11) |
赋值一个 basic_filebuf 对象(public member function of std::basic_filebuf<CharT,Traits> ) |
(C++11) |
从另一个 basic_istream 移动赋值(protected member function) |