std::ostreambuf_iterator::failed
STD::OStreambuf[医]迭代器::失败
bool failed() const; | | |
---|
回报true
如果迭代器遇到文件结束条件,即,如果先前调用std::basic_streambuf::sputc
28%运算符=29%返回Traits::eof
...
参数
%280%29
返回值
true
如果此迭代器在输出时遇到文件结束条件,false
否则。
例外
(none) | (until C++11) |
---|---|
noexcept specification: noexcept | (since C++11) |
例
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
http://en.cppreference.com/w/cpp/iterator/oStreambuf[医]迭代器/失败