basic_streambuf::setg

To set the beginning, next and end pointers.

void setg (char_type *gbeg, char_type *gnext, char_type *gend);

Remarks

After the call to setg() the gbeg pointer equals eback(), the gnext pointer equals gptr(), and the gend pointer equals egptr().