basic_streambuf::seekpos

To alter an input or output stream position.

virtual pos_type seekpos (pos_type sp, ios_base::openmode which = ios::in |ios::out);

Remarks

The function seekpos() is overridden in basic_stringbuf and basic_filebuf classes.

Returns a pos_type value, which is an invalid stream position.