Writing an ostream filter?
Posted
by shoosh
on Stack Overflow
See other posts from Stack Overflow
or by shoosh
Published on 2010-04-25T09:14:58Z
Indexed on
2010/04/25
9:23 UTC
Read the original article
Hit count: 130
I'd like to write a simple ostream
which wraps an argument ostream
and changes the stream in some way before passing it on to the argument stream. The transformation is something simple like changing a letter or erasing a word
What would a simple class inheriting from ostream
look like? What methods should I override?
© Stack Overflow or respective owner