Contents|Index|Previous|Next
Simple output re-direction by redefining overflow

Suppose you have a function, write_to_window, that writes characters to a window object. If you want to use the ostream function to write to it, what follows is one (portable) way to do it. This depends on the default buffering (if any).

Top|Contents|Index|Previous|Next