Boost logo

Boost Users :

Subject: Re: [Boost-users] [iostreams]Can I write data directly to the device of a stream?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-05-20 23:50:32


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net