名前空間
変種
操作

std::basic_iostream<CharT,Traits>::swap

From 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メンバ関数から呼び出されます。これらのクラスは、関連付けられたストリームバッファを正しく交換する方法を知っています。


[編集] パラメータ

その他 - 状態を交換するもう一方のストリーム

[編集] 戻り値

*this

English 日本語 中文(简体) 中文(繁體)