std::basic_iostream<CharT,Traits>::operator=
来自 cppreference.cn
< cpp | io | basic iostream
basic_iostream& operator=( const basic_iostream& other ) = delete; |
(1) | |
protected: basic_iostream& operator=( basic_iostream&& other ); |
(2) | (C++11 起) |
赋值另一个流对象。
1) 不允许复制赋值。
2) 移动赋值另一个流对象。 有效地调用 swap(rhs)。 此移动赋值运算符是受保护的:它由派生流类 std::basic_stringstream 和 std::basic_fstream 的移动赋值运算符调用,这些派生流类知道如何正确地移动赋值关联的流缓冲区。
[编辑] 参数
other | - | 要赋值状态的另一个流 |
[编辑] 返回值
*this
[编辑] 参见
构造对象 (公共成员函数) |