protected member function
<streambuf> <iostream>

std::basic_streambuf::gbump

void gbump (int n);
Advance get pointer
Adds n to the get pointer.

The get pointer (gptr) is the internal pointer that points to the current location in the array with the buffered portion of the controlled input sequence.

参数

n
Value by which to increase the get pointer.
This shall be a value such that gptr()+n is in the range between eback and egptr.

返回值



数据竞争

修改*流缓冲区*对象。
对同一流缓冲区对象的并发访问可能导致数据竞争。

异常安全

基本保证:如果抛出异常,*流缓冲区*处于有效状态。

无效参数会导致未定义行为

另见