operator=
描述 (Description)
它用于移动作业。
声明 (Declaration)
以下是std :: basic_istream :: operator =的声明。
copy (1)
basic_istream& operator= (const basic_istream&) = delete;
move (2)
basic_istream& operator= (basic_istream&& rhs);
参数 (Parameters)
rhs - 具有相同模板参数(charT和traits)的另一个basic_istream对象。
返回值 (Return Value)
它返回* this。
异常 (Exceptions)
No-throw guarantee - 此成员函数永远不会抛出异常。
数据竞争 (Data races)
修改两个流对象(* this和rhs)。