[Patch/RFC] Improve (maybe ;) basic_stringbuf::overflow
Paolo Carlini
pcarlini@unitus.it
Thu May 1 20:37:00 GMT 2003
Hi all,
this is an idea I got (also perhaps inspired by Nathan).
It tests ok and definitely spares a copy :)
However, I'm not sure the standard guarantees that
swap exchanges also the capacities: I rely on that
property of v3 basic_string implementation.
In case in fact it doesn't, would be ok to just add a
comment about that??
Paolo.
/////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_overflow
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030501/736b6456/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_overflow
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030501/736b6456/attachment-0001.ksh>
More information about the Libstdc++
mailing list