名前空間
変種
操作

std::basic_iostream<CharT,Traits>::operator=

提供: cppreference.com
< cpp‎ | io‎ | basic iostream
 
 
入出力ライブラリ
入出力マニピュレータ
Cスタイルの入出力
バッファ
(C++98で非推奨)
ストリーム
抽象
ファイル入出力
文字列入出力
配列入出力
(C++98で非推奨)
(C++98で非推奨)
(C++98で非推奨)
同期化出力
エラーカテゴリインタフェース
(C++11)
 
std::basic_iostream
メンバ関数
プロテクテッドメンバ関数
basic_iostream::operator=
 
basic_iostream& operator=( const basic_iostream& other ) = delete;
(1)
protected:
basic_iostream& operator=( basic_iostream&& other );
(2) (C++11以上)

別のストリームオブジェクトを代入します。

1) コピー代入はできません。
2) 別のストリームオブジェクトをムーブ代入します。 実質的に swap(rhs) を呼びます。 このムーブ代入演算子は protected です。 紐付けられているストリームバッファを正しくムーブ代入する方法を知っている派生ストリームクラス std::basic_stringstream および std::basic_fstream によって呼ばれます。

[編集] 引数

other - 状態を代入する別のストリーム

[編集] 戻り値

*this

[編集] 引数

オブジェクトを構築します
(パブリックメンバ関数) [edit]