Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2003-06-09 13:17:46

The prototype for an input stream is:

explicit basic_istream(
   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.

Robert Ramey

>"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, gregod at, cpdaniel at, john at