protected member function
void setg (char_type* new_eback, char_type* new_gptr, char_type* new_egptr);
Set input sequence pointers
Sets the value for the pointers that define the boundaries of the buffered portion of the controlled input sequence (eback and egptr) as well as the get pointer itself (gptr).
This is a protected member that other member functions can call to change the array that describes the buffered portion of the controlled input sequence.
Member type char_type is the type of the characters in the stream buffer (the first class template parameter).
- New value for the pointer to the beginning of the accessible part of the controlled input sequence (eback).
- New value for the get pointer (gptr), which points to the character in the controlled input sequence to be accessed by the next input operation.
This shall point to a character between new_eback and new_egptr.
- New value for the end pointer, just past the end of the accessible part of the controlled input sequence (egptr).
This shall point to a character in the same array as new_eback.
Modifies the stream buffer object.
Concurrent access to the same stream buffer object may introduce data races.
Basic guarantee: if an exception is thrown, the stream buffer is in a valid state.
Invalid arguments cause undefined behavior.