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