std::char_t...s::not_eof,(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

okay so bestie, welcome to the std::char_t...s::not_eof,(3) page from the C++ Standard Libary manual β€” yes, that spelling is exactly what we're serving πŸ’…βœ¨

🌸 NAME 🌸

The NAME section is out here repeating itself like a group chat when someone drops an iconic take: std::char_traits::not_eof,std::char_traits::not_eof, - std::char_traits::not_eof,std::char_traits::not_eof, 🫢


πŸ¦‹ Synopsis πŸ¦‹

Here's the signature, no cap:

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, this produces a suitable value that is not equivalent to eof πŸŽ€

Typically you use this when a value other than eof needs to be returned, such as in implementations of std::basic_streambuf::overflow().

For the general requirements on character traits for X::not_eof, see CharTraits πŸ‘€


πŸ” Parameters πŸ”

  • e β€” value to analyze πŸ”

🫢 Return value 🫢

e if e and the eof value are not equivalent, or some other non-eof value otherwise. That's the whole return-value vibe πŸ¦‹


⭐ Complexity ⭐

Constant. That's it, periodt ⭐


πŸ‘‘ See also πŸ‘‘

  • eof β€” returns an eof value [static] (public static member function) πŸ‘‘

mwah πŸ’– source: http://cppreference.com; date/version: 2024.06.10; footer title vibe: std::char_t...s::not_eof,(3). slay and bye πŸŽ€

πŸ“¦ where this page comes from