std::basic_...ambuf::gbump(3)
π std::basic_...ambuf::gbump π
okay so this page comes from the C++ Standard Libary manual, and the header title is std::basic_...ambuf::gbump(3) β yes, the name is literally chopped like that in the title, we move π
πΈ NAME πΈ
std::basic_streambuf::gbumpβstd::basic_streambuf::gbump
β¨ Synopsis β¨
protected:
void gbump( int count );
It skips count characters in the get area. This is done by adding count to the get pointer. No checks are done for underflow β like, none, zero, no safety net bestie π
π Parameters π
countβ number of characters to skip
π¦ Return value π¦
Literally (none).
πΈ Notes πΈ
Because this function takes an int, it cannot manipulate buffers larger than std::numeric_limits<int>::max() characters (LWG issue 255). That's the limit, periodt.
π Example π
This section is incomplete Reason: no example
not me reading an incomplete example section π it's giving "we'll finish this later" energy.
π₯ Defect reports π₯
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
- DR:
LWG 59 - Applied to:
C++98 - Behavior as published: it was unclear whether
gbumpcan be implemented as callingsbumpccounttimes (which may check underflow) - Correct behavior: only add
countto the get pointer
β See also β
pbumpβ advances the next pointer of the output sequence (protected member function)
π Category π
- Todo no example
mwah π this page is from http://cppreference.com, version/date 2024.06.10, and the footer title is std::basic_...ambuf::gbump(3) β iconic, no cap π«Ά
π¦ 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