Change hash_table to support a comparator type different from the value type stored in the hash table. 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. Index: gcc/ChangeLog 2012-10-25 Lawrence Crowl <crowl@google.com> * hash-table.h: Add usage documentation. (template struct typed_free_remove): Clarify documentation. Rename template parameter. (struct typed_noop_remove): Likewise. (descriptor concept): Change typedef T to value_type. Add typedef compare_type. Use more precise template parameter name, Descriptor instead of Descr. Update users to match. (struct hash_table): Change 'find' parameters to use compare_type instead of the value type. From-SVN: r192823
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| ChangeLog | Loading commit data... | |
| ChangeLog.ptr | Loading commit data... | |
| ChangeLog.tree-ssa | Loading commit data... | |
| Make-lang.in | Loading commit data... | |
| boehm.c | Loading commit data... | |
| builtins.c | Loading commit data... | |
| class.c | Loading commit data... | |
| config-lang.in | Loading commit data... | |
| constants.c | Loading commit data... | |
| decl.c | Loading commit data... | |
| except.c | Loading commit data... | |
| expr.c | Loading commit data... | |
| gcj.texi | Loading commit data... | |
| java-except.h | Loading commit data... | |
| java-gimplify.c | Loading commit data... | |
| java-opcodes.h | Loading commit data... | |
| java-tree.def | Loading commit data... | |
| java-tree.h | Loading commit data... | |
| javaop.def | Loading commit data... | |
| javaop.h | Loading commit data... | |
| jcf-depend.c | Loading commit data... | |
| jcf-dump.c | Loading commit data... | |
| jcf-io.c | Loading commit data... | |
| jcf-parse.c | Loading commit data... | |
| jcf-path.c | Loading commit data... | |
| jcf-reader.c | Loading commit data... | |
| jcf.h | Loading commit data... | |
| jvgenmain.c | Loading commit data... | |
| jvspec.c | Loading commit data... | |
| lang-specs.h | Loading commit data... | |
| lang.c | Loading commit data... | |
| lang.opt | Loading commit data... | |
| mangle.c | Loading commit data... | |
| mangle_name.c | Loading commit data... | |
| parse.h | Loading commit data... | |
| resource.c | Loading commit data... | |
| typeck.c | Loading commit data... | |
| verify-glue.c | Loading commit data... | |
| verify-impl.c | Loading commit data... | |
| verify.h | Loading commit data... | |
| win32-host.c | Loading commit data... | |
| zextract.c | Loading commit data... | |
| zipfile.h | Loading commit data... |