[Patch] Step1: don't use _M_out_lim in stringbuf, etc...

Paolo Carlini pcarlini@unitus.it
Fri Jun 20 20:29:00 GMT 2003


Hi,

this is the first step of the planned major changes to
filebuf, stringbuf (and streambuf): I briefly recall here to
the casual reader that the final goal is that of removing
completely any use of _M_out_lim and having filebuf non
unified, thus simplifying _M_move_out_cur and _M_move_in_cur
to their bare bones pbump and gbump. This means better
performance for *all* the streambuf inlines.

In the first step, which brings stringbuf very close to its
final form, we stop using _M_out_lim in stringbuf,
replaced instead by egptr(). The latter is updated by
the virtuals, as part of _M_sync inner logic or via
the new specific _M_update_egptr.

For details, see the Changelog entry.

I took the occasion to start using the correct documented
interface to streambuf (gptr(), pbump, setp, etc, etc) in
sstream.tcc and std_sstream.h.

Tested x86-linux, ok with everyone?

Paolo.

///////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_ss_outlim
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030620/08194286/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_ss_outlim_4
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030620/08194286/attachment-0001.ksh>


More information about the Libstdc++ mailing list