命名空间
变体
操作

std::basic_spanstream<CharT,Traits>::swap

来自 cppreference.cn
< cpp‎ | io‎ | basic spanstream
void swap( basic_spanstream& other );
(C++23 起)

与 other 交换流的状态。

这是通过调用 std::basic_iostream<CharT, Traits>::swap(other) 并交换包装的 std::basic_spanbuf 对象(可通过 *rdbuf() 访问)来完成的。

目录

[edit] 参数

other - 与之交换状态的流

[edit] 返回值

(无)

[edit] 异常

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

[edit] 示例

[edit] 参见

交换两个 basic_spanbuf 对象
(public member function of std::basic_spanbuf<CharT,Traits>) [edit]