std::char_t...s::not_eof,(3)
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 aneofvalue [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
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms