This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Details of new std::string
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: NightStrike <nightstrike at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 4 Aug 2015 10:14:17 +0100
- Subject: Re: Details of new std::string
- Authentication-results: sourceware.org; auth=none
- References: <CAF1jjLvjOjSX9Yg1yDt5uXytG9_v_NRYDC7zSJ-VCerp330gNA at mail dot gmail dot com>
On 4 August 2015 at 03:35, NightStrike wrote:
> GCC 5 includes the new std::string implementation that I guess is
> optimized for small strings.
>
> Where can I find details about the new implementation compared to the
> old? Specifically, I am interested in predicting when the object will
> allocate additional memory. The old string was very predictable in
> this regard, and this is important for certain embedded systems.
In the source code.