std::basic_iostream::basic_iostream
提供:cppreference.com
< cpp | io | basic iostream
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| 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.
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() == sbとgcount() == 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.
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.
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_fstreamとstd::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.
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. (パブリックメンバ関数) |