Topic: equivalent to gcount() in basic_ostream
Author: "Stephen Howe" <SPAMGUARDstephen.howe@dial.pipex.com>
Date: 2000/02/11 Raw View
AFAICT, basic_istream::gcount() will return how many elements were read for
basic_istream::read() because of course the EOF can occur in the middle of
the read.
I have looked around at documentation on Internet (GNU's), checked 3rd
edition of Stoustrup's book and other source material, but I cannot find the
equivalant function for basic_ostream::write(). Why is this? write's may
fail depending on medium.
Was this omitted in the ISO C++ standard? If so, why the lack of symmetry
and how are we supposed to determine how many elements have been written
out?
Thank you
Stephen Howe
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]