std::basic_filebuf::overflow
提供: cppreference.com
< cpp | io | basic filebuf
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
protected: virtual int_type overflow ( int_type c = Traits::eof() ); |
||
第一に格納されている外部(おそらくマルチバイト)表現に文字を変換するために吹き込まれたロケールのstd::basic_streambuf::overflowを使用して、関連した文字列(ファイルに)出力領域からデータを書き込むことを除いて、基本クラスcodecvt::out()のように振る舞う一時バッファ(必要に応じて大きさの割り当て)は、I / Oは、ファイルにすべて完全に変換されたバイトをコピーするファイルを使用しています.
Original:
Behaves like the base class std::basic_streambuf::overflow, except that to write the data from the put area to the associated character sequence (to the file), first uses codecvt::out() of the imbued locale to convert the characters into external (possibly multibyte) representation, stored in a temporary buffer (allocated as large as necessary), then uses file I/O to copy all fully-converted bytes into the file.
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::codecvt_base::errorで失敗した場合は、任意の出力を試みることなくTraits::eof()を返し.
Original:
If the conversion fails with std::codecvt_base::error, returns Traits::eof() without attempting any output.
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.
関連付けられたファイルが開いていない場合(is_open()==false、何かを行う前にTraits::eof()を返し.
Original:
If the associated file is not open (is_open()==false, returns Traits::eof() before doing anything.
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.
目次 |
[編集] パラメータ
(なし)
[編集] 値を返します
Traits::not_eof(c)成功または失敗を示すTraits::eof()を示すために。
Original:
Traits::not_eof(c) to indicate success or Traits::eof() to indicate failure.
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.
[編集] 例
This section is incomplete Reason: no example |
[編集] 参照
[仮想] |
put領域から関連する出力シーケンスに文字を書き込みます Original: writes characters to the associated output sequence from the put area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数of std::basic_streambuf )
|
[仮想] |
関連付けられたファイルから読み込みます Original: reads from the associated file The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (仮想protectedメンバ関数) |