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: [GSoC] Question about the implementation of vec.h


On Mon, Jul 21, 2014 at 5:22 AM, Roman Gareev <gareevroman@gmail.com> wrote:
> Dear gcc contributors,
>
> could you please answer a few questions about the implementation of
> vec.h? Should we always use âcreateâ to initialize, for example,
> vec<tree_node*> or is it possible to do it using âsafe_grow_clearedâ
> or a similar function? There is "vec_safe_grow_cleared", which works
> with vec<T, A, vl_embed>. Is there a way to use it with
> vec<tree_node*>?

Yes, you need to use .create() to initialize vec instances.


Diego.


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