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 起為 constexpr) (C++11 起無異常丟擲) |
|
給定 e,生成一個不等於 eof
的合適值。
此函式通常用於需要返回 eof
以外的值時,例如在 std::basic_streambuf::overflow() 的實現中。
有關 X::not_eof
的字元特性的一般要求,請參閱 CharTraits。
目錄 |
[編輯] 引數
e | - | 要分析的值 |
[編輯] 返回值
如果 e 和 eof
值不相等,則返回 e,否則返回其他非 eof 值。
[編輯] 複雜度
常數時間。
[編輯] 參閱
[靜態] |
返回一個 eof 值 (public static 成員函式) |