std::basic_streambuf<CharT,Traits>::pbump (3) - Linux Manuals
std::basic_streambuf<CharT,Traits>::pbump: std::basic_streambuf<CharT,Traits>::pbump
NAME
std::basic_streambuf<CharT,Traits>::pbump - std::basic_streambuf<CharT,Traits>::pbump
Synopsis
void pbump( int count );
Repositions the put pointer (pptr()) by count characters, where count may be positive or negative. No checks are done for moving the pointer outside the put area [pbase(), epptr()).
If the pointer is advanced and then overflow() is called to flush the put area to the associated character sequence, the effect is that extra count characters with undefined values are output.
Parameters
count - number to add to the put pointer
Return value
(none)
Notes
Because this function takes an int, it cannot manipulate buffers larger than std::numeric_limits<int>::max() characters (LWG_255)
Example
// Run this code
Output:
See also
gbump (protected member function)