pos_type seekoff (off_type off, ios_base::seekdir way, ios_base::openmode which = ios_base::in | ios_base::out);
-1
,但派生類應覆蓋此行為以適當地修改內部指標:basic_filebuf 和 basic_stringbuf 都覆蓋此虛擬成員函式,以將由 which 指定的內部指標設定為相對於 way 指定方向的偏移量 off。值 | 偏移量相對於... |
---|---|
ios_base::beg | 流緩衝區的開始 |
ios_base::cur | 流緩衝區中的當前位置 |
ios_base::end | 流緩衝區的末尾 |
值 | 受影響的位置指標 |
---|---|
ios_base::in | 修改 *受控輸入序列* 中的當前位置 |
ios_base::out | 修改 *受控輸出序列* 中的當前位置 |
pos_type(off_type(-1))
。