std::ostreambuf_iterator<CharT,Traits>::failed
來自 cppreference.com
< cpp | 迭代器 | ostreambuf 迭代器
bool failed() const throw(); |
(C++11 前) | |
bool failed() const noexcept; |
(C++11 起) | |
如果迭代器遇到檔案結束條件,即如果先前對 std::basic_streambuf::sputc(由 operator=
呼叫)返回 Traits::eof,則返回 true。
[編輯] 引數
(無)
[編輯] 返回值
如果此迭代器在輸出時遇到檔案結束條件,則為 true,否則為 false。
[編輯] 示例
本節不完整 原因:無示例 |