public static member function
<string>
static int_type not_eof(const int_type& c);
static constexpr int_type not_eof(int_type c) noexcept;
Not End-of-File character
Returns a value that is guaranteed to not be an End-of-File.
If c is not an End-of-File character, it always returns c unchanged. Otherwise, some implementation-defined value that is not an End-of-File character.
All character traits types shall implement the function so that the returned value compares different from eof() using member eq_int_type.
Parameters
c
Value.
Member type int_type is an integral type that can represent eof() or any valid character value.
Return Value
c if c is not an End-of-File value, and some other value otherwise.
Member type int_type is an integral type that can represent eof() or any valid character value.
Exception safety
No-throw guarantee: this member function never throws exceptions.
See also
- char_traits::eof
- End-of-File character ( public static member function
)