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

Getting the current read position&period;

== Synopsis

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

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

== Description

If `fail()` is not false, returns `pos&lowbar;type(&hyphen;1)` to indicate failure&period; Otherwise returns `rdbuf()&hyphen;&gt;pubseekoff(0,cur,in)&period;`

[NOTE]
====
This function does not count the number of characters extracted, if any, and therefore does not affect the next call to `gcount()&period;` At variance with putback, unget and seekg, eofbit is not cleared first&period;

====

== Return Value

A file position object&period;


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