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
From cppreference.com
 
 
 < cpp | string | char traits 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
static int_type not_eof( int_type e );
 
 (constexpr since C++11)(noexcept since C++11)
Given e, produces 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.
Contents
[edit] Parameters
 e
 -
 value to analyze
[edit] Return value
e if e and eof value are not equivalent, or some other non-eof value otherwise.
[edit] Complexity
Constant.