bsl::basic_istringstream::tellg

Getting the current read position.

Synopsis

Declared in <bslstl_istringstream.h>

pos_type
tellg();

Description

If fail() is not false, returns pos_type(-1) to indicate failure. Otherwise returns rdbuf()->pubseekoff(0,cur,in).

NOTE

This function does not count the number of characters extracted, if any, and therefore does not affect the next call to gcount(). At variance with putback, unget and seekg, eofbit is not cleared first.

Return Value

A file position object.