pos_type seekoff (off_type off, ios_base::seekdir way, ios_base::openmode which = ios_base::in | ios_base::out);
值 | 偏移量相對於... |
---|---|
ios_base::beg | 字元序列的開頭 |
ios_base::cur | 根據引數 which,*讀取指標*(gptr)或*寫入指標*(pptr)的當前位置。 |
ios_base::end | 字元序列的末尾 |
值 | 受影響的位置指標 |
---|---|
ios_base::in | 修改*讀取指標*(gptr) |
ios_base::out | 修改*寫入指標*(pptr) |
pos_type(off_type(-1))
。