This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch/RFC] Improve (maybe ;) basic_stringbuf::overflow


Nathan Myers wrote:

Hmm, string::reserve() is cheap when capacity is already >= its argument, right? Might as well call it after the swap, just to be sure.

Nathan, I had in mind the _very same_ idea!

I will add that, then wait a bit more for more feedback...

Paolo.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]