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))。