名稱空間
變體
操作

std::basic_spanstream<CharT,Traits>::swap

來自 cppreference.com
< cpp‎ | io‎ | basic spanstream
void swap( basic_spanstream& other );
(C++23 起)

other 交換流的狀態。

這是透過呼叫 std::basic_iostream<CharT, Traits>::swap(other) 並交換包裝的 std::basic_spanbuf 物件(可透過 *rdbuf() 訪問)來完成的。

目錄

[edit] 引數

其他 - 用於交換狀態的流

[edit] 返回值

(無)

[編輯] 異常

可能丟擲實現定義的異常。

[edit] 示例

[edit] 參閱

交換兩個 basic_spanbuf 物件
(std::basic_spanbuf<CharT,Traits> 的公共成員函式) [編輯]