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... | |
Make-lang.in | Loading commit data... | |
config-lang.in | Loading commit data... | |
lang-specs.h | Loading commit data... | |
objc-act.c | Loading commit data... | |
objc-act.h | Loading commit data... | |
objc-encoding.c | Loading commit data... | |
objc-encoding.h | Loading commit data... | |
objc-gnu-runtime-abi-01.c | Loading commit data... | |
objc-lang.c | Loading commit data... | |
objc-map.c | Loading commit data... | |
objc-map.h | Loading commit data... | |
objc-next-metadata-tags.h | Loading commit data... | |
objc-next-runtime-abi-01.c | Loading commit data... | |
objc-next-runtime-abi-02.c | Loading commit data... | |
objc-runtime-hooks.h | Loading commit data... | |
objc-runtime-shared-support.c | Loading commit data... | |
objc-runtime-shared-support.h | Loading commit data... | |
objc-tree.def | Loading commit data... |