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