std::basic_ostringstream::swap
來自 cppreference.com
< cpp | io | basic ostringstream
void swap( basic_ostringstream& other ); |
(C++11 起) | |
與 other
交換流的狀態。
這是透過呼叫 basic_ostream<CharT, Traits>::swap(other) 和 rdbuf()->swap(*other.rdbuf()) 完成的。
目錄 |
[編輯] 引數
其他 | - | 用於交換狀態的流 |
[編輯] 返回值
(無)
[編輯] 異常
可能丟擲實現定義的異常。
[編輯] 示例
本節不完整 原因:無示例 |
[編輯] 參閱
(C++11) |
移動字串流 (public member function) |
(C++11) |
交換兩個 basic_stringbuf 物件( std::basic_stringbuf<CharT,Traits,Allocator> 的公開成員函式) |