On 10/26/12, Richard Biener <richard.guent...@gmail.com> wrote:
> On Oct 25, 2012 Lawrence Crowl <cr...@googlers.com> wrote:
> > Change hash_table to support a comparator type different from the
> > value type stored in the hash table.  The 'find' functions now
> > may take a different type from the value type.  This requires
> > introducing a second typedef into the Descriptor conceptual type.
> > Change the Descriptor concept to use typedefs value_type and
> > compare_type instead of T.  Change all users to match.
> >
> > Add usage documentation to hash-table.h.
> >
> > Tested on x86-64.
> >
> > Okay for trunk?
>
> Can you elaborate on why this is needed?

There are several uses of htab_t that have a different type for
the comparator than from the values in the table.  I also got a
question asking how to make that happen.  So, to enable handling
the existing cases and the question, I added the capability.

-- 
Lawrence Crowl

Reply via email to