strstreambuf::overflow
A protected virtual function that can be called when a new character is inserted into a full buffer.
virtual int overflow(
int _Meta = EOF
);
매개 변수
- _Meta
The character to insert into the buffer, or EOF.
반환 값
If the function cannot succeed, it returns EOF. Otherwise, if _Meta == EOF, it returns some value other than EOF. Otherwise, it returns _Meta.
설명
If _Meta != EOF, the protected virtual member function tries 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 strstreambuf mode 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.
요구 사항
Header: <strstream>
네임스페이스: std