Compartilhar via


basic_streambuf::setg

A protected function that stores _Gbeg in the beginning pointer, _Gnext in the next pointer, and _Gend in the end pointer for the input buffer.

void setg( 
   char_type *_Gbeg, 
   char_type *_Gnext, 
   char_type *_Gend 
);

Parameters

  • _Gbeg
    A pointer to the beginning of the buffer.

  • _Gnext
    A pointer to somewhere in the middle of the buffer.

  • _Gend
    A pointer to the end of the buffer.

Requirements

Header: <streambuf>

Namespace: std

See Also

Reference

basic_streambuf Class

iostream Programming

iostreams Conventions