std::swap(std::basic_fstream)
提供: cppreference.com
template< class CharT, class Traits > void swap( basic_fstream<CharT,Traits> &lhs, basic_fstream<CharT,Traits> &rhs ); |
||
std::swap アルゴリズムを std::basic_fstream に対して特殊化します。 lhs と rhs の状態を交換します。 実質的に lhs.swap(rhs) を呼びます。
引数
| lhs, rhs | - | 状態を入れ替えるストリーム |
戻り値
(なし)
例外
(なし)
例
| This section is incomplete Reason: no example |
関連項目
(C++11) |
2つのファイルストリームを入れ替えます (パブリックメンバ関数) |