std::basic_spanstream<CharT,Traits>::operator=
来自 cppreference.cn
< cpp | io | basic_spanstream
basic_spanstream& operator=( basic_spanstream&& other ); |
(1) | (C++23 起) |
basic_spanstream& operator=( const basic_spanstream& ) = delete; |
(2) | (C++23 起) |
2) 拷贝赋值运算符被删除。
basic_spanstream
不可拷贝赋值。请注意,基类的移动赋值运算符会交换 *this 和 other 之间的所有流状态变量(除了 rdbuf()
)。
在移动赋值后,other 中包装的 std::basic_spanbuf 是否仍持有底层缓冲区是实现定义的。
目录 |
[edit] 参数
其他 | - | 另一个要从中移动的流 |
[edit] 返回值
*this
[编辑] 异常
可能抛出实现定义的异常。
[edit] 示例
本节不完整 原因:无示例 |
[edit] 参阅
赋值 basic_spanbuf 对象( std::basic_spanbuf<CharT,Traits> 的公开成员函数) | |
(C++11) |
移动赋值另一个basic_iostream (保护成员函数) |