Topic: IOSTREAM question : should ends manipulato
Author: clamage@Eng.Sun.COM (Steve Clamage)
Date: 1996/04/16 Raw View
In article 1604961139410001@galois.ecs.soton.ac.uk, S.D.Maclean@ecs.soton.ac.uk (Stuart Maclean) writes:
>
>I noticed that manipulator "endl" synchronises with the external
>representation, but "ends" does not. Tracing our IOStream library,
>libg++-2.7.1, it indeed does not do a flush when using "ends".
That is correct. It has always been the case (and is still the case
in the draft standard) that "ends" inserts a null character but does
not flush, and "endl" inserts a newline character followed by a flush.
---
Steve Clamage, stephen.clamage@eng.sun.com
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]