std::basic_...buf::snextc(3)

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

πŸ¦‹ 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