名前空間
変種
操作

std::basic_iostream::basic_iostream

提供: cppreference.com
< cpp‎ | io‎ | basic iostream

 
 
入力/出力ライブラリ
I / Oのマニピュレータ
CスタイルのI / O
バッファ
Original:
Buffers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf
basic_filebuf
basic_stringbuf
strstreambuf(廃止予定)
ストリーム
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
抽象化
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
ファイルI / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
文字列I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
アレイのI / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream(廃止予定)
ostrstream(廃止予定)
strstream(廃止予定)
タイプ
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
エラーカテゴリインターフェース
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category(C++11)
io_errc(C++11)
 
std::basic_iostream
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_iostream::basic_iostream
basic_iostream::~basic_iostream
メンバ関数を保護しました
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_iostream::operator=
basic_iostream::swap
 
explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb );
(1)
basic_iostream( const basic_iostream& other ) = delete;
(2) (C++11およびそれ以降)
protected:
basic_iostream( basic_iostream&& other );
(3) (C++11およびそれ以降)
新しいストリームオブジェクトを構築し.
Original:
Constructs new stream object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
streambufをsbで初期化します。基底クラスはbasic_istream<CharT,Traits>(sb)basic_ostream<CharT,Traits>(sb)として初期化されます。コー​​ルの後rdbuf() == sbgcount() == 0.
Original:
Initializes with streambuf sb. The base classes are initialized as basic_istream<CharT,Traits>(sb) and basic_ostream<CharT,Traits>(sb). After the call rdbuf() == sb and gcount() == 0.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
コピーコンストラクタは許可されていません.
Original:
Copy construction is not allowed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
コンストラクターの移動:最初の基底クラスを構築する動きが-basic_istreamとしてbasic_istream<CharT,Traits>(std::move(rhs));、どの順番にムーブ構築し、仮想基底std::basic_iosを初期化します。入居建設は二回basic_ostreamを使用できないため、他のベース、std::basic_ostreamの初期化(例えば、保護された既定のコンストラクターは何もしませんrhs、に加えてもよい)実装定義である。このムーブコンストラクタは保護されています:それは、派生ストリームクラスのムーブコンストラクタによって呼び出されstd::basic_fstreamstd::basic_stringstream彼らが前に移動·構築し、ストリームバッファを関連付ける.
Original:
Move constructor: move-constructs the first base class basic_istream as basic_istream<CharT,Traits>(std::move(rhs));, which in turn move-constructs and initializes the virtual base std::basic_ios. The initialization of the other base, basic_ostream, is implementation-defined (e.g., a protected default constructor may be added to std::basic_ostream, which does nothing) because move-construction cannot use rhs twice. This move constructor is protected: it is called by the move constructors of the derived stream classes std::basic_fstream and std::basic_stringstream before they move-construct and associate the stream buffer.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] パラメータ

sb -
で初期化したstreambuf
Original:
streambuf to initialize with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
other -
で初期化するために別のストリーム
Original:
another stream to initialize with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] も参照してください

(C++11)
移動、割り当て別basic_iostream
Original:
move-assigns another basic_iostream
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数) [edit]