std::char_traits::not_eof, std::char_traits::not_eof, std::char_traits::not_eof, std::char_traits::not_eof, std::char_traits::not_eof (original) (raw)

| 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.

[edit] Parameters

[edit] Return value

e if e and _eof_ value are not equivalent, or some other non-eof value otherwise.

[edit] Complexity

Constant.

[edit] See also

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