basic_istream::tellg

Determines the offset of the get pointer in a stream

pos_type tellg();

Remarks

The function tellg calls rdbuf()->pubseekoff(0, cur, in).

The current offset is a pos_type if successful, else returns -1.

See Also

basic_streambuf::pubseekoff()

Example of basic_istream::tellg() usage see basic_istream::seekg