std::basic_ospanstream<CharT,Traits>::swap
來自 cppreference.com
< cpp | io | basic ospanstream
void swap( basic_ospanstream& other ); |
(C++23 起) | |
與 other
交換流的狀態。
透過呼叫 std::basic_ostream<CharT, Traits>::swap(other) 並交換包裝的 std::basic_spanbuf 物件(可透過 *rdbuf() 訪問)來完成此操作。
目錄 |
[edit] 引數
其他 | - | 用於交換狀態的流 |
[edit] 返回值
(無)
[編輯] 異常
可能丟擲實現定義的異常。
[edit] 示例
本節不完整 原因:無示例 |
[edit] 參閱
交換兩個 basic_spanbuf 物件( std::basic_spanbuf<CharT,Traits> 的公共成員函式) |