std::basic_streambuf::pubsync, std::basic_streambuf::sync
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
int pubsync(); |
(1) | |
protected: virtual int sync(); |
(2) | |
Synchronizes the controlled character sequence (the buffers) with the associated character sequence.
1)sync()
呼び出しますsync()
of the most derived classYou can help to correct and verify the translation. Click here for instructions.
2) The base class version of this function has no effect. The derived classes may override this function to allow synchronizing the underlying device with the buffers.
For output streams, this typically results in writing the contents of the put area into the associated sequence, i.e. flushing of the output buffer. For input streams, this typically empties the get area and forces a re-read from the associated sequence to pick up recent changes. The default behavior (found, for example, in std::basic_stringbuf), is to do nothing.
目次 |
[編集] パラメータ
You can help to correct and verify the translation. Click here for instructions.
[編集] 値を返します
1) The return value of sync()
.
2) Returns 0 on success, -1 otherwise. The base class version returns 0.
[編集] 例
This section is incomplete Reason: no example |
[編集] も参照してください
基本となるストレージデバイスとの同期を行います Original: synchronizes with the underlying storage device The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数of std::basic_istream )
| |
[仮想] |
put領域から関連付けられたファイルに文字を書き込みます Original: writes characters to the associated file 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_filebuf )
|