std::basic_ios<CharT,Traits>::move
提供: cppreference.com
protected: void move( basic_ios& other ); |
(C++11以上) | |
protected: void move( basic_ios&& other ); |
(C++11以上) | |
紐付けられている rdbuf
を除いて、現在の状態を other
の状態に置き換えます。 呼び出しの後、 other
は有効だけれども未規定な状態になります。 この関数の呼び出しの後、 rdbuf() は NULL を返し、 other.rdbuf() は呼び出し前と同じ値を返し、 other.tie() は 0 を返します。
このメンバ関数は protected です。 派生ストリームクラス std::basic_ostream および std::basic_istream の protected ムーブコンストラクタから呼ばれ、それは紐付けるストリームバッファを正し��ムーブする方法を知っている std::basic_ofstream などのさらに派生したストリームクラスの public ムーブコンストラクタから呼ばれます。
[編集] 引数
other | - | 状態の転送元の basic_ios オブジェクト
|
[編集] 戻り値
(なし)
[編集] 関連項目
(C++11) |
rdbuf を除いて別の std::basic_ios と入れ替えます (プロテクテッドメンバ関数) |