int_type underflow() override;
int_type pbackfail(int_type c = traits::eof()) override;
int_type overflow(int_type c = traits::eof()) override;
pos_type seekoff(off_type off, ios_base::seekdir way,
ios_base::openmode which
= ios_base::in | ios_base::out) override;
Conditions | Result |
ios_baseβ::βin is set in which | positions the input sequence |
ios_baseβ::βout is set in which | positions the output sequence |
both ios_baseβ::βin and ios_baseβ::βout are
set in which and either way == ios_baseβ::βbeg or way == ios_baseβ::βend | positions both the input and the output sequences |
Otherwise | the positioning operation fails. |
Condition | newoff Value |
way == ios_baseβ::βbeg | 0 |
way == ios_baseβ::βcur | the next pointer minus the beginning pointer (xnext - xbeg). |
way == ios_baseβ::βend | the high mark pointer minus the beginning pointer (high_mark - xbeg). |
pos_type seekpos(pos_type sp,
ios_base::openmode which
= ios_base::in | ios_base::out) override;
basic_streambuf<charT, traits>* setbuf(charT* s, streamsize n) override;