public member function
<sstream>

std::basic_stringstream::operator=

copy (1)
basic_stringstream& operator= (const basic_stringstream&) = delete;
move (2)
basic_stringstream& operator= (basic_stringstream&& rhs);
移动赋值
获取rhs的内容,通过移动赋值其成员和基类。

Move assigning its internal basic_stringbuf object leaves unspecified whether the internal sequence of characters is the one in rhs before the call, or a copy of it. In any case, both objects use independent sequences after the call.

参数

rhs
Another basic_stringstream object with the same template parameters (charT, traits and Alloc).

返回值

*this

数据竞争

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

异常安全

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

另见