命名空间
变体
操作

std::basic_ostringstream::swap

来自 cppreference.cn
void swap( basic_ostringstream& other );
(自 C++11 起)

other 交换流的状态。

这是通过调用 basic_ostream<CharT, Traits>::swap(other)rdbuf()->swap(*other.rdbuf()) 完成的。

内容

[编辑] 参数

other - 与之交换状态的流

[编辑] 返回值

(无)

[编辑] 异常

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

[编辑] 示例

[编辑] 参见

(C++11)
移动字符串流
(公共成员函数) [编辑]
(C++11)
交换两个 basic_stringbuf 对象
(std::basic_stringbuf<CharT,Traits,Allocator> 的公共成员函数) [编辑]