This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: string reserve()
- To: Colin Thomas <colin at designresources dot co dot uk>
- Subject: Re: string reserve()
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Fri, 31 Aug 2001 12:29:42 -0400
- Cc: libstdc++ at gcc dot gnu dot org
- References: <200108311558.QAA01277@skinner.desres>
On Fri, Aug 31, 2001 at 04:58:39PM +0100, Colin Thomas wrote:
> I have a program that deals with small strings - 1-2 characters. The default
> capacity() is getting set to 16 (and wasting memory)
>
> I have tried the following on my 2.95.2 version of gcc
This list is for the C++ library in GCC 3.x. The string class in 2.95 is
completely different.
> Secondly, how do I know what version of libstdc++ I have got installed -
> I have libstdc++.so.2.10.0 , but the numbering does not link in with
> anything like libstdc++-2.92 ?
Totally different projects. The 2.10 thing is something else; the 2.92
is an earlier snapshot of this list's library.
> I hear rumours pertaining to gcc3.0 having libstd auotmatically included
Yes.
--
Would I had phrases that are not known, utterances that are strange, in
new language that has not been used, free from repetition, not an utterance
which has grown stale, which men of old have spoken.
- anonymous Egyptian scribe, c.1700 BC