Namespaces
Variants
Actions

std::basic_streambuf<CharT,Traits>::gbump

From cppreference.com
< cpp‎ | io‎ | basic streambuf
 
C++
 
Input/output library
 
std::basic_streambuf
protected:
void gbump( int count );

Skips count characters in the get area. This is done by adding count to the get pointer. No checks are done for underflow.

Contents

[edit] Parameters

count - number of characters to skip

[edit] Return value

(none)

[edit] Notes

Because this function takes an int, it cannot manipulate buffers larger than std::numeric_limits<int>::max() characters (LWG issue 255).

[edit] Example

[edit] Defect reports

The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

DR Applied to Behavior as published Correct behavior
LWG 59 C++98 it was unclear whether gbump can be implemented as
calling sbumpc count times (which may check underflow)
only add count
to the get pointer

[edit] See also

advances the next pointer of the output sequence
(protected member function) [edit]

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant