std::basic_spanstream<CharT,Traits>::operator=

来自cppreference.com
< cpp‎ | io‎ | basic spanstream
basic_spanstream& operator=( basic_spanstream&& other );
(1) (C++23 起)
basic_spanstream& operator=( const basic_spanstream& ) = delete;
(2) (C++23 起)
1) 移动赋值 other*this,相当于移动赋值 std::basic_iostream 基类子对象和所包装的 std::basic_spanbuf
2) 复制赋值运算符被弃置。basic_spanstream 不可复制赋值。

注意,基类的移动赋值运算符在 *thisother 间交换所有流状态变量(除了 rdbuf())。

包装于 otherstd::basic_spanbuf 在移动赋值后是否仍然保有底层缓冲区是实现定义的。

目录

[编辑] 参数

other - 要移动的另一流

[编辑] 返回值

*this

[编辑] 异常

可能会抛出由实现定义的异常。

[编辑] 示例

[编辑] 参阅

赋值 basic_spanbuf 对象
(std::basic_spanbuf<CharT,Traits> 的公开成员函数) [编辑]
(C++11)
移动赋值另一 basic_iostream
(受保护成员函数) [编辑]