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.

返回值



資料競爭

修改*流緩衝區*物件。
對同一流緩衝區物件的併發訪問可能導致資料競爭。

異常安全

基本保證:如果丟擲異常,*流緩衝區*處於有效狀態。

無效引數會導致未定義行為

另見