std::basic_...mbuf::stossc(3)
π 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. π¦
- If the input sequence read position is not available, it returns
uflow(). Otherwise it returnsTraits::to_int_type(*gptr()). - 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 π
- 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
- 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