std::basic_...mbuf::stossc(3)

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

πŸŽ€ NAME πŸŽ€

okay so this is the std::basic_...mbuf::stossc(3) page, and it lives in the C++ Standard Libary manual (yes, that's the spelling on the page β€” no cap). The NAME line lists std::basic_streambuf::sbumpc,std::basic_streambuf::stossc and then repeats the same pair after the dash. Both functions are the main characters here. πŸ’…

✨ Synopsis ✨

int_type sbumpc(); (1)
void stossc();     (2) (deprecated in C++98)
                       (removed in C++17)

The core vibe: reads one character and advances the input sequence by one character. πŸ¦‹

  1. If the input sequence read position is not available, it returns uflow(). Otherwise it returns Traits::to_int_type(*gptr()).
  2. Same as (1), but the result gets discarded. Also β€” important β€” this one is deprecated in C++98 and removed in C++17, so it's giving legacy energy. πŸ’€

🌸 Parameters 🌸

None. Zero. Zilch. The page literally says (none). 🫢

πŸ’– Return value πŸ’–

  1. The value of the character pointed to by the get pointer, or Traits::eof() if the read position is not available.

That's the return for sbumpc; stossc does the same thing but discards the result. ✨

πŸŽ€ Example πŸŽ€

This section is incomplete Reason: no example

No example bestie, that's just what the page says. 😭

πŸ¦‹ See also πŸ¦‹

  • sgetc β€” reads one character from the input sequence without advancing the sequence (public member function)
  • snextc β€” advances the input sequence, then reads one character without advancing again (public member function)

🌈 Category 🌈

Category: * Todo no example β€” that's the tag, fr fr. πŸ‘‘


Source/version and date check: http://cppreference.com, 2024.06.10. That's the whole footer folded into this cute little bye. Mwah πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from