std::char_traits<CharT>::not_eof
来自cppreference.com
< cpp | string | char traits
| static int_type not_eof( int_type e ); |
(C++11 前) | |
| static constexpr int_type not_eof( int_type e ) noexcept; |
(C++11 起) | |
检查 e 是否不等价于 eof 值。
正式而言
- 若 X::eq_int_type(e, X::eof()) 为
true,则返回e - 否则,返回满足 X::eq_int_type(f, X::eof()) 为
false的 f
参数
| e | - | 要分析的值 |
返回值
若 e 与 eof 不等价则返回 e ,否则返回某些其他非 eof 值。
复杂度
常数。
参阅
| [静态] |
返回一个 eof 值 (公开静态成员函数) |