std::basic_ospanstream<CharT,Traits>::operator=
来自cppreference.com
< cpp | io | basic ospanstream
| basic_ospanstream& operator=( basic_ospanstream&& other ); |
(1) | (C++23 起) |
| basic_ospanstream& operator=( const basic_ospanstream& ) = delete; |
(2) | (C++23 起) |
2) 复制赋值运算符被删除。
basic_ospanstream 不可复制赋值。注意基类的移动赋值运算符在 *this 与 other 间交换所有流状态变量(除了 rdbuf() )。
包装于 other 的 std::basic_spanbuf 在移动赋值后是否仍然保有底层缓冲区是实现定义的。
参数
| other | - | 要移动的另一流 |
返回值
*this
异常
可能抛出实现定义的异常。
示例
| 本节未完成 原因:暂无示例 |
参阅
| (C++23) |
赋值 basic_spanbuf 对象 ( std::basic_spanbuf<CharT,Traits> 的公开成员函数) |
| (C++11) |
从另一 basic_ostream 移动赋值 (受保护成员函数) |