Hi,
I have implemented the virtual function of the streambuf class
In specification is written that overflow() function is callled when buffer is full.
but i have observed that this function ( overflow() ) is called on writing the each character in output stream e.g. on writing the abc , this function is called three times Why?????
Is the specification wrong or default buffer size is one byte?
Code:cout.rdbuf(&DebugStreamBuf); cout << abc << endl; int DebugStreamBuf::overflow(int ch) { ... }