On this page
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
|
(until C++11) | |
|
(since C++11) |
Given e
, produce a suitable value that is not equivalent to eof.
This function is typically used when a value other than eof needs to be returned, such as in implementations of std::basic_streambuf::overflow()
.
See CharTraits for the general requirements on character traits for X::not_eof
.
Parameters
e | - | value to analyze |
Return value
e
if e
and eof value are not equivalent, or some other non-eof value otherwise.
Complexity
Constant.
See also
[static]
|
returns an eof value (public static member function) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/string/char_traits/not_eof