A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/string/char_traits/not_eof/ below:

public static member function

<string>

std::char_traits::not_eof
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 Valuec 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.



Complexity Constant.

Exception safetyNo-throw guarantee: this member function never throws exceptions.

See also
char_traits::eof
End-of-File character (public static member function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4