Standard C++ Library Reference ISO/IEC (VERSION3)
strstreambuf::overflow
virtual int overflow(int meta = EOF);
If meta != EOF, the protected virtual member function endeavors to insert the element
(char)meta into the output buffer. It can do so in various ways:
If a write position is available, it can store the element into the write position and
increment the next pointer for the output buffer.
●
If the stored strstreambufmode says the controlled sequence is modifiable, extendable,
and not frozen, the function can make a write position available by allocating new for the
output buffer. (Extending the output buffer this way also extends any associated input
buffer.)
●
If the function cannot succeed, it returns EOF. Otherwise, if meta == EOF it returns some
value other than EOF. Otherwise, it returns meta.
strstreambuf::pbackfail
virtual int pbackfail(int meta = EOF);
The protected virtual member function endeavors to put back an element into the input buffer,
then make it the current element (pointed to by the next pointer).
If meta == EOF, the element to push back is effectively the one already in the stream before
the current element. Otherwise, that element is replaced by ch = (char)meta. The function
can put back an element in various ways:
If a putback position is available, and the element stored there compares equal to ch, it
can simply decrement the next pointer for the input buffer.
●
If a putback position is available, and if the strstreambuf mode says the controlled
sequence is modifiable, the function can store ch into the putback position and
decrement the next pointer for the input buffer.
●
If the function cannot succeed, it returns EOF. Otherwise, if meta == EOF it returns some
value other than EOF. Otherwise, it returns meta.
strstreambuf::seekoff
virtual streampos seekoff(streamoff off,
ios_base::seekdir way,
ios_base::openmode which =
ios_base::in | ios_base::out);
The protected virtual member function endeavors to alter the current positions for the controlled
streams. For an object of class strstreambuf, a stream position consists purely of a stream