[#bsl-basic_istringstream-seekg-0f] = xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic_istringstream]::seekg :relfileprefix: ../../ :mrdocs: Changing the current read position. == Synopsis Declared in `<bslstl_istringstream.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- __istream_type& seekg( off_type, ios_base::seekdir); ---- == Description If `fail()` is not true, calls `rdbuf()‐>pubseekoff(__off,__dir).` If that function fails, sets failbit. [NOTE] ==== This function first clears eofbit. It does not count the number of characters extracted, if any, and therefore does not affect the next call to `gcount().` ==== == Return Value *this == Parameters [cols="1,4"] |=== | Name| Description | *__off* | A file offset object. | *__dir* | The direction in which to seek. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#