std::char_traits<char>::not_eof, std::char_traits<wchar_t>::not_eof, std::char_traits<char8_t>::not_eof, std::char_traits<char16_t>::not_eof, std::char_traits<char32_t>::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 的值。
此函数通常用于需要返回非 eof 的情况,例如实现 std::basic_streambuf::overflow()。
对字符特性的关于 X::not_eof
的通用要求参考字符特性 (CharTraits)
。
参数
e | - | 要分析的值 |
返回值
在 e 与 eof 不等价时返回 e,否则返回某些其他非 eof 值。
复杂度
常数。
参阅
[静态]
|
返回一个 eof 值 (公开静态成员函数) |