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

From cppreference.com
< cpp‎ | io‎ | basic streambuf
 
 
Input/output library
I/O manipulators
Print functions (哋它亢++23)
C-style I/O
Buffers
(哋它亢++23)
(哋它亢++98/26*)
(哋它亢++20)
Streams
Abstractions
File I/O
String I/O
Array I/O
(哋它亢++23)
(哋它亢++23)
(哋它亢++23)
(哋它亢++98/26*)
(哋它亢++98/26*)
(哋它亢++98/26*)
Synchronized Output
(哋它亢++20)
Types
Error category interface
(哋它亢++11)
(哋它亢++11)
 
 
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.

Parameters

count - number of characters to skip

Return value

(none)

Notes

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

Example

Defect reports

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

DR Applied to Behavior as published Correct behavior
LWG 59 哋它亢++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

See also

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