std::basic_iostream<CharT,Traits>:: operator=
From cppreference.net
<
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
的移动赋值运算符调用,这些派生类知晓如何正确移动赋值关联的流缓冲区。
参数
| 其他 | - | 用于赋值状态的另一流 |
返回值
* this
参见
|
构造对象
(公开成员函数) |