std::basic_ios<CharT,Traits>::swap
From cppreference.com
| protected: void swap( basic_ios& other ) noexcept; |
(C++11以降) | |
*this と other の状態を交換します。ただし、関連付けられた rdbuf オブジェクトは除きます。rdbuf() および other.rdbuf() は、呼び出し前の値と同じ値を返します。
この swap 関数は protected です。これは、関連付けられたストリームバッファを正しく交換する方法を知っている、std::basic_ofstream や std::basic_istringstream などの派生ストリームクラスの swap メンバ関数によって呼び出されます。
[編集] パラメータ
| その他 | - | 状態を交換する basic_ios オブジェクト |
[編集] 関連項目
| (C++11) |
rdbuf を除き、他の std::basic_ios から移動します(protected メンバ関数) |