
21 May
2010
21 May
'10
3:50 a.m.
AMDG 鑫炜廖 wrote:
BTW, what's the differences between stream and stream_buffer, filtering_stream and filtering_streambuf besides different base classes they derived from ? Their members look all the same...
stream and filtering_stream inherit from std::[i|o]stream, so you can use the usual operator<<. stream_buffer and filtering_streambuf inherit from std::streambuf. The filtering_[stream|streambuf] variants can take a sequence of filters terminating in a device. In Christ, Steven Watanabe