What are ‘aliased stream buffers`? I encountered the term in a comment on an answer of mine.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve never heard the term before, but in the thread you cite,
the person who used it also gave an example: two streams which
use the same streambuf.
Of course, just because two streams don’t use the same
streambuf, doesn’t mean that data written to them doesn’t
ultimately end up in the same place; that they don’t alias the
same sink, if that is what is meant. There are filtering
streambuf’s, which forward the actual sinking and sourcing to
another streambuf, and on most systems, it’s possible to open
a file at the system level, and connect a streambuf (or two) to
it.
—
James Kanze