[Patch] istreambuf_iterator::operator++ simplification

Paolo Carlini pcarlini@suse.de
Tue Nov 23 13:22:00 GMT 2004


Hi,

in private email, Nathan very kindly gave a lot of interesting suggestions
for further improving and streamlining istreambuf_iterator; I'm separately
and incrementally testing and benchmarking each one.

The below just notices that both operator++ can avoid checking the return
value of sbumpc() and it's worth a small but consistent improvement in
in many different tests.

Regtested x86-linux, will wait 'til this evening (italian time) in case
of comments.

Paolo.

/////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_iter_nat_1
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041123/e1013904/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_iter_nat_1
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20041123/e1013904/attachment-0001.ksh>


More information about the Libstdc++ mailing list