std::basic_istringstream::swap
来自 cppreference.cn
< cpp | io | basic istringstream
void swap( basic_istringstream& other ); |
(since C++11) | |
与 other 交换流的状态。
这通过调用 basic_istream<CharT, Traits>::swap(other) 和 rdbuf()->swap(*other.rdbuf()) 完成。
内容 |
[edit] 参数
other | - | 与之交换状态的流 |
[edit] 返回值
(无)
[edit] 异常
可能抛出实现定义的异常。
[edit] 示例
本节尚不完整 原因:没有示例 |
[edit] 参见
(C++11) |
移动字符串流 (公共成员函数) |
(C++11) |
交换两个 basic_stringbuf 对象 (std::basic_stringbuf<CharT,Traits,Allocator> 的公共成员函数) |