std::ios_base::ios_base
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
public: ios_base( const ios_base& ) = delete; |
(1) | |
protected: ios_base(); |
(2) | |
コピーconstuctorは削除されます。ストリームはコピー可能ではありません
2) Original:
The copy constuctor is deleted: streams are not copyable
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.
デフォルトコンストラクタは保護されています派生クラスだけは
std::ios_base
を構築することができる。内部状態は、建設後に定義されていません。派生クラスが最初に使用する前に、またはデストラクタ前に初期化を完了するbasic_ios::init()を呼び出す必要があり、そうでない場合の動作は未定義です.Original:
The default constructor is protected: only derived classes may construct
std::ios_base
. The internal state is undefined after the construction. The derived class must call basic_ios::init() to complete initialization before first use or before destructor, otherwise the behavior is undefined.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.
[編集] ノート
同じことがstd::basic_iosは、I / O階層内の次のクラスのコンストラクタに適用されます。さらに派生クラス(std::istreamとstd::ostream)は常に、複数回多分、具体的なストリームバッファオブジェクトとコールbasic_ios::init()で構築される、仮想基盤の初期化を完了するために.
Original:
The same applies to the constructors of the next class in the I/O hierarchy, std::basic_ios. Further-derived classes (std::istream and std::ostream) are always constructed with a concrete streambuffer object and call basic_ios::init(), possibly more than once, to complete initialization of their virtual base.
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.