Rather than a special purpose data structure here, could you instead build
a MapVector analogous to SetVector which works essentially the same way and
provides nice stable iteration order?


On Sun, Aug 26, 2012 at 4:33 PM, Rafael Espíndola <
[email protected]> wrote:

> > 4 Add a deterministic iterator to CXXFinalOverriderMap.
> >
>
> I decided to try to implement this and I think the result is a bit
> better. The densemap in  CXXFinalOverriderMap now maps to indexes in a
> vector of values. This works because we never remove an element from
> it. When we want to iterate over all the values, we just use the
> vector.
>
> Cheers,
> Rafael
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to