std::basic_iostream<CharT,Traits>::swap
來自 cppreference.com
< cpp | io | basic iostream
protected: void swap( basic_iostream& other ); |
(C++11 起) | |
與另一個輸入/輸出流物件交換狀態。實際呼叫 basic_istream<CharT,Traits>::swap(other)。
此成員函式是受保護的:它由派生流類 std::basic_stringstream 和 std::basic_fstream 的 swap 成員函式呼叫,這些類知道如何正確交換關聯的流緩衝區。
[編輯] 引數
其他 | - | 另一個要交換狀態的流 |
[編輯] 返回值
*this