std::basic_ios<CharT,Traits>::swap
提供: cppreference.com
<tbody>
</tbody>
protected: void swap( basic_ios& other ) noexcept; |
(C++11以上) | |
紐付けられている rdbuf オブジェクトを除き、 *this と other の状態を交換します。 rdbuf() および other.rdbuf() は呼び出し前と同じ値を返します。
この swap 関数は protected です。 紐付けられているストリームバッファを正しく入れ替える方法を知っている std::basic_ofstream や std::basic_istringstream のような派生ストリームクラスの swap メンバ関数によって呼ばれます。
引数
| other | - | 状態を交換する basic_ios オブジェクト
|
戻り値
(なし)
関連項目
(C++11) |
rdbuf を除いて別の std::basic_ios にムーブします (プロテクテッドメンバ関数) |