std::basic_stringstream:: operator=
From cppreference.net
<
cpp
|
io
|
basic stringstream
|
basic_stringstream
&
operator
=
(
basic_stringstream
&&
other
)
;
|
(自 C++11 起) | |
将字符串流 other 移动赋值给 * this ,实际上同时移动赋值了 std::basic_iostream 基类和关联的 std::basic_stringbuf 。
请注意,基类的移动赋值操作会交换 rdbuf 之外的所有流状态变量,在 * this 与 other 之间进行交换。
目录 |
参数
| 其他 | - | 要移动来源的字符串流 |
返回值
* this
示例
|
本节内容不完整
原因:缺少示例 |
另请参阅
|
(C++11)
|
交换两个字符串流
(公开成员函数) |
|
(C++11)
|
赋值
basic_stringbuf
对象
(
std::basic_stringbuf<CharT,Traits,Allocator>
的公开成员函数)
|
|
(C++11)
|
移动赋值另一个
basic_iostream
(受保护成员函数) |