This is the mail archive of the
mailing list for the GCC project.
Re: Using stl containers in gcc
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andres Tiraboschi <andres dot tiraboschi at tallertechnologies dot com>
- Cc: Jeff Law <law at redhat dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 3 May 2016 17:37:07 +0200
- Subject: Re: Using stl containers in gcc
- Authentication-results: sourceware.org; auth=none
- References: <CAJZwELk_0K4a_hEx1V=W0dOxKjDo7nfa4W0mdeO-Y2m7Pv1URQ at mail dot gmail dot com> <0a7b0410-73b6-b7f0-681f-bbca637f4a2d at redhat dot com> <20160503150226 dot GB26501 at tucnak dot zalov dot cz> <CAJZwELn_csF1ivB-BysM8gMZwpdgnkVcJfe4tRA-yRYbdZMzOA at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, May 03, 2016 at 12:30:35PM -0300, Andres Tiraboschi wrote:
> This raises a further question: why are gcc containers preferred over stl ones.
For consistency, because they play well together with the garbage
collection, because they are tuned for GCC's needs (e.g. to be usable even
in POD structs/unions where needed, to reduce their size in the common case,