Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
IOstream Library
manipulators
classes:
filebuf
fstream
ifstream
ios
iostream
ios_base
istream
istringstream
ofstream
ostream
ostringstream
streambuf
stringbuf
stringstream
objects:
cerr
cin
clog
cout
types:
fpos
streamoff
streampos
streamsize
streambuf
streambuf::streambuf
streambuf::~streambuf
public members:
streambuf::getloc
streambuf::in_avail
streambuf::pubimbue
streambuf::pubseekoff
streambuf::pubseekpos
streambuf::pubsetbuf
streambuf::pubsync
streambuf::sbumpc
streambuf::sgetc
streambuf::sgetn
streambuf::snextc
streambuf::sputbackc
streambuf::sputc
streambuf::sputn
streambuf::sungetc
protected members:
streambuf::eback
streambuf::egptr
streambuf::epptr
streambuf::gbump
streambuf::gptr
streambuf::pbase
streambuf::pbump
streambuf::pptr
streambuf::setg
streambuf::setp
virtual prot. members:
streambuf::imbue
streambuf::overflow
streambuf::pbackfail
streambuf::seekoff
streambuf::seekpos
streambuf::setbuf
streambuf::showmanyc
streambuf::sync
streambuf::uflow
streambuf::underflow
streambuf::xsgetn
streambuf::xsputn


streambuf::setg

protected member function
void setg ( char* gbeg, char* gnext, char* gend );

Set input sequence pointers

Sets values for the pointers that define both the boundaries of the accessible part of the controlled input sequence and the get pointer itself.

Parameters

gbeg
New value for the pointer to the beginning of the accessible part of the controlled input sequence.
gnext
New value for the get pointer, which points to the next element within the controlled input sequence where the next input operation shall be performed.
gend
New value for the end pointer, just past the end of the accessible part of the controlled input sequence.

Return Value

none

Basic template member declaration

( basic_streambuf<charT,traits> )
1
2
typedef charT char_type;
void setg ( char_type* gbeg, char_type* gnext, char_type* gend );


See also