basic_streambuf::pubseekpos

pos_type pubseekpos(pos_type sp,
    ios_base::openmode which = ios_base::in | ios_base::out);

The member function returns seekpos(sp, which).