Scroll to navigation

std::char_traits::not_eof,std::char_traits::not_eof,(3) C++ Standard Libary std::char_traits::not_eof,std::char_traits::not_eof,(3)

NAME

std::char_traits::not_eof,std::char_traits::not_eof, - std::char_traits::not_eof,std::char_traits::not_eof,

Synopsis


std::char_traits<char32_t>::not_eof


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.

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


eof returns an eof value
[static] (public static member function)

2024.06.10 http://cppreference.com