[#bsl-basic_istringstream-seekg-0a]
= xref:bsl.adoc[bsl]::xref:bsl/basic_istringstream.adoc[basic&lowbar;istringstream]::seekg
:relfileprefix: ../../
:mrdocs:

Changing the current read position&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;istringstream&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lowbar;&lowbar;istream&lowbar;type&
seekg(pos&lowbar;type);
----

== Description

If `fail()` is not true, calls `rdbuf()&hyphen;&gt;pubseekpos(&lowbar;&lowbar;pos)&period;` If that function fails, sets failbit&period;

[NOTE]
====
This function first clears eofbit&period; It does not count the number of characters extracted, if any, and therefore does not affect the next call to `gcount()&period;`

====

== Return Value

&ast;this

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;pos*
| A file position object&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
