istream::seekg

istream::seekg
istream& seekg( streampospos);
istream& seekg( streamoffoff, ios::seek_dirdir);
Parameters
pos
The new position value;streamposis atypedefequivalent tolong.
off
The new offset value;streamoffis atypedefequivalent tolong.
dir
The seek direction. Must be one of the following enumerators:ios::beg Seek from the beginning of the stream.
ios::cur Seek from the current position in the stream.
ios::end Seek from the end of the stream.
Remarks
Changes the get pointer for the stream. Not all derived classes ofistreamneed support positioning; it is most often used with file-based streams.
istream Overview| Input Stream Classes
See Alsoistream::tellg,ostream::seekp,ostream::tellp

相關詞條

熱門詞條

聯絡我們