protected member function
<istream> <iostream>

std::basic_iostream::operator=

copy (1)
basic_iostream& operator= (const basic_iostream&) = delete;
move (2)
basic_iostream& operator= (basic_iostream&& rhs);
移动赋值
Exchanges all internal members between rhs and *this, except the pointers to the associated stream buffers: rdbuf shall return the same in both objects as before the call.

This is the same behavior as calling member basic_iostream::swap.

派生类可以调用此函数来实现移动语义。

参数

rhs
另一个具有相同模板参数(charTtraits)的 basic_istream 对象。

返回值

*this

数据竞争

修改两个流对象(*thisrhs)。

异常安全

无异常保证:此成员函数从不抛出异常。

另见