用於 ostream | ostream& flush (ostream& os); |
---|---|
基礎模板 | template <class charT, class traits>basic_ostream<charT,traits>& flush (basic_ostream<charT,traits>& os); |
<<
)操作結合使用(請參見下面的示例)。flag | error |
---|---|
eofbit | - |
failbit | 如果 sentry 物件的構造失敗,則可能設定此標誌。 |
badbit | 同步操作失敗(包括函式捕獲了內部操作丟擲的異常)。 設定時,流的完整性可能受到影響。 |
|
|
test.txt
100 次。