basic_istream::seekg
basic_istream::seekg
basic_istream& seekg(pos_type pos);
basic_istream& seekg(off_type off, ios_base::seek_dir way);
If fail
()
is false, the first member function calls rdbuf
()->
pubseekpos
(pos)
. If fail()
is false, the second function calls rdbuf()->
pubseekoff
(off, way)
. Both functions return *this
.