std::basic_...buf::snextc(3)
π¦ std::basic_streambuf::snextc π¦
okay so welcome to the C++ Standard Libary manual page for std::basic_streambuf::snextc β yes, that's how the header spells it, and we're not editing the source, bestie π. this page is giving βadvance one, then read oneβ energy, and it's lowkey iconic. let's go π
π NAME π
std::basic_streambuf::snextc β std::basic_streambuf::snextc
literally the same name on both sides, no notes, periodt β¨
πΈ Synopsis πΈ
int_type snextc();
so the function advances the input sequence by one character and reads one character. fr fr.
the function calls sbumpc() to advance the input sequence. if that function returns Traits::eof() meaning that input sequence has been exhausted and uflow() could not retrieve more data, Traits::eof() is returned. otherwise sgetc() is called in order to read the character. π«Ά
π Parameters π
(none) β no args, no drama, no parameters at all π
β¨ Return value β¨
the value of the next character. if the input sequence has been exhausted, Traits::eof() is returned. π
π«Ά Example π«Ά
this section is incomplete. reason: no example π
no example demo, we're just vibing on faith π§
π See also π
sgetcβ reads one character from the input sequence without advancing the sequence (public member function) πsbumpcβ reads one character from the input sequence and advances the sequence (public member function) π₯stosscβ (removed in C++17) (public member function) π
π Category π
- Todo no example π
mwah π β source/version: http://cppreference.com, date: 2024.06.10, page: std::basic_...buf::snextc(3). that's the whole manual page, bestie, slay πβ¨
π¦ 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