From: Robert Ramey (ramey_at_[hidden])
Date: 2003-06-09 13:17:46
The prototype for an input stream is:
basic_streambuf<Elem, Tr> *_Strbuf <>
That is, every stream must be bound to a streambuf when it is constructed. Same
goes for output streams.
otherthings such as ifstream, cin, etc. are derivations, specializations and/or
typedefs based on the above.
The streambuf implementation can be selected independantly of the stream
formating. This the source of the appeal of enhancing streambuf.
>"Reece Dunn" <msclrhd_at_[hidden]> writes
>Also, is there a way for you to bind a streambuf to a stream? I have not had
>any direct experience with stream buffers, so I don't know. If not, it would
>be a good idea to have an I/O stream that can have a custom stream buffer,
>that way you can use stream facilities on these buffers, thus gaining access
>to compression, encription, etc.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk