std::basic_streambuf<CharT,Traits>::setg (3) - Linux Manuals
std::basic_streambuf<CharT,Traits>::setg: std::basic_streambuf<CharT,Traits>::setg
NAME
std::basic_streambuf<CharT,Traits>::setg - std::basic_streambuf<CharT,Traits>::setg
Synopsis
void setg( char_type* gbeg, char_type* gcurr, char_type* gend );
Sets the values of the pointers defining the get area. Specifically, after the call eback() == gbeg, gptr() == gcurr, egptr() == gend
Parameters
gbeg - pointer to the new beginning of the get area
gcurr - pointer to the new current character (get pointer) in the get area
gend - pointer to the new end of the get area
Return value
(none)
Example
// Run this code
Output:
See also
setp (protected member function)