Knoll Lars wrote: > Just as a side note: While perf ensures there’s no collisions between > valid keys in the hash table, you still end up doing one string comparison > in the end to ensure that your input string matches the key.
Why? Just document that passing an unknown string is undefined behavior, then if your invalid input happens to collide with the hash of something valid, it'll just be a synonym, undefined means undefined. Kevin Kofler _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development