std::basic_osyncstream<CharT,Traits,Allocator>::operator=

来自cppreference.com
basic_osyncstream& operator=( std::basic_osyncstream&& other ) noexcept;
(C++20 起)

移动赋值同步输出流。

other 的对应成员移动赋值被包装的 std::basic_syncbuf (此移动赋值后, other.get_wrapped() 返回空指针,而 other 的析构不产生输出;放出任何待决的缓冲输出)并移动赋值基类 std::basic_ostream (这会在 *thisother 间交换所有流状态变量,除了 rdbuf )。

参数

other - 要移动的另一 osyncstream

返回值

*this

注解

若在放出待决的输出时抛出异常,则调用 std::terminate

示例

参阅

构造 basic_osyncstream
(公开成员函数)
销毁 basic_osyncstream 并发射其内部缓冲区
(公开成员函数)
调用底层 basic_syncbuf 上的 emit 以传输其内部数据到最终目标
(公开成员函数)