This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Using stl containers in gcc


This raises a further question: why are gcc containers preferred over stl ones.

Thanks, AndrÃs.

2016-05-03 12:02 GMT-03:00 Jakub Jelinek <jakub@redhat.com>:
> On Tue, May 03, 2016 at 08:59:11AM -0600, Jeff Law wrote:
>> On 05/03/2016 08:44 AM, Andres Tiraboschi wrote:
>> >Hi,
>> >Does anyone know if there is a good reason for not using stl
>> >containers in gcc sources?
>> >I'm asking because I didn't find any use of them in the code I read.
>> The GCC coding conventions allow the use of the standard library; but you
>> have to be careful WRT objects that are subject to garbage collection.
>
> And, if there is a GCC counterpart of a particular container, the GCC
> counterpart should be used instead of the stl one.
> E.g. vec, or hash_map etc.
>
>         Jakub


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