
Jonathan Wakely wrote:
But speaking of "buf/stream," how about using "buf" and "stream"? E.g.,
typedef stream<file> filestream; typedef buf<file> filebuf;
typedef stream<array> arraystream; typedef buf<array> arraybuf;
Not only are these better than the other choices, I think these are actually quite good names.
Thanks.
My only reservation is that a streambuf doesn't necessarily do any buffering (that's true for std::streambufs, anyway, I assume it's the case for yours as well),
right.
so taking the "buf" part of the name "streambuf" emphasises the misleading part of the name, but that's not a big deal.
Good point, but I think it's a shortcoming of the standard library's naming conventions; e.g., basic_stringbuf performs unbuffered i/o.
jon
Jonathan