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) を呼びます。
このメンバ関数は protected です。 紐付けられているストリームバッファを正しく入れ替える方法を知っている派生ストリームクラス std::basic_stringstream および std::basic_fstream の swap メンバ関数によって呼ばれます。
[編集] 引数
other | - | 状態を交換する別のストリーム |
[編集] 戻り値
*this。