std::basic_stringstream::swap
来自 cppreference.cn
< cpp | io | basic stringstream
void swap( basic_stringstream& other ); |
(C++11 起) | |
与 other
交换流的状态。
这是通过调用 basic_iostream<CharT, Traits>::swap(other) 和 rdbuf()->swap(*other.rdbuf()) 来完成的。
目录 |
[编辑] 参数
其他 | - | 用于交换状态的流 |
[edit] 返回值
(无)
[编辑] 异常
可能抛出实现定义的异常。
[编辑] 示例
本节不完整 原因:无示例 |
[编辑] 参阅
(C++11) |
移动字符串流 (public member function) |
(C++11) |
交换两个 basic_stringbuf 对象( std::basic_stringbuf<CharT,Traits,Allocator> 的公共成员函数) |