std::basic_spanstream<CharT,Traits>::operator=
来自cppreference.com
| |
(1) | (C++23 起) |
| |
(2) | (C++23 起) |
1) 移动赋值
other 给 *this,相当于移动赋值 std::basic_iostream 基类子对象和所包装的 std::basic_spanbuf。2) 复制赋值运算符被弃置。
basic_spanstream 不可复制赋值。注意,基类的移动赋值运算符在 *this 与 other 间交换所有流状态变量(除了 rdbuf())。
包装于 other 的 std::basic_spanbuf 在移动赋值后是否仍然保有底层缓冲区是实现定义的。
参数
| other | - | 要移动的另一流 |
返回值
*this
异常
可能会抛出由实现定义的异常。
示例
| 本节未完成 原因:暂无示例 |
