std::char_t...raits::eof,(3)

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

✨ NAME ✨

okay so bestie, this is the page for std::char_traits::eof from the C++ Standard Libary manual (yes, that spelling is exactly what's on the page, iykyk 🫢). The header is all std::char_t...raits::eof,(3), and the raw NAME block is literally:

std::char_traits::eof,std::char_traits::eof, -
std::char_traits::eof,std::char_traits::eof,

✨ Synopsis ✨

Here's the synopsis in its natural habitat:

std::char_traits<char32_t>::eof

static int_type eof();  (constexpr since C++11)
                        (noexcept since C++11)

The page says: β€œReturns a value not equivalent to any valid value of type char_type.” That's the whole mood. 😌

And for the general requirements on character traits for X::eof, it says: β€œSee CharTraits for the general requirements on character traits for X::eof.” πŸ’…


✨ Parameters ✨

  • (none) β€” literally no parameters, bestie. Nothing to pass, nothing to flex. πŸŽ€

✨ Return value ✨

Here's the char_type β†’ eof() mapping, and yes it's giving very specific:

  • char β†’ EOF
  • wchar_t β†’ WEOF
  • char8_t β†’ an implementation-defined constant that cannot appear as a valid UTF-8 code unit
  • char16_t β†’ an implementation-defined constant that cannot appear as a valid UTF-16 code unit
  • char32_t β†’ an implementation-defined constant that cannot appear as a Unicode code point

✨ Complexity ✨

Constant. That's it. That's the complexity. periodt. ⭐


✨ See also ✨

  • not_eof β€” checks whether a character is eof value; [static] (public static member function)

okay that's the whole page, bestie. source: http://cppreference.com, version/date: 2024.06.10, page: std::char_t...raits::eof,(3). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from