bsl::basic_istringstream::seekg

Changing the current read position.

Synopsis

Declared in <bslstl_istringstream.h>

__istream_type&
seekg(pos_type);

Description

If fail() is not true, calls rdbuf()->pubseekpos(__pos). 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

NameDescription
__posA file position object.