std::basic_ospanstream<CharT,Traits>:: swap
|
void
swap
(
basic_ospanstream
&
other
)
;
|
(自 C++23 起) | |
将流的状态与
other
的状态进行交换。
这是通过调用 std:: basic_ostream < CharT, Traits > :: swap ( other ) 并交换封装的 std::basic_spanbuf 对象(可通过 * rdbuf ( ) 访问)来实现的。
目录 |
参数
| 其他 | - | 用于交换状态的流 |
返回值
(无)
异常
可能抛出实现定义的异常。
示例
|
本节内容不完整
原因:缺少示例 |
另请参阅
交换两个
basic_spanbuf
对象
(
std::basic_spanbuf<CharT,Traits>
的公开成员函数)
|