This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] string: exponential growth inside _S_create?!?
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: pcarlini at suse dot de
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Tue, 27 Jan 2004 17:58:33 -0600 (CST)
- Subject: Re: [RFC] string: exponential growth inside _S_create?!?
- References: <40168AD9.107@suse.de>
- Reply-to: rittle at labs dot mot dot com
In article <40168AD9.107@suse.de>, Paolo Carlini<pcarlini@suse.de> writes:
> Currently, the exponential growth policy mandated by the standard is [...]
> So... Shall I try to implement it *inside* _S_create?
> It seems to me that, in case of success, this would allow a major
> clean-up, better incapsulation, better performance (?) for the constructor
> from input iterators.
> What do you think?
You have my vote on this change (I also looked at your patch). I
agree we had a hole in the growth policy.
Regards,
Loren