Combine values into a single hash_code.
Synopsis
Declared in <llvm/ADT/Hashing.h>
template<typename... Ts>
hash_code
hash_combine(Ts const&... args);
Description
This routine accepts a varying number of arguments of any type. It will attempt to combine them into a single hash_code. For user‐defined types it attempts to call a
The result is suitable for returning from a user's hash_value implementation for their user‐defined type. Consumers of a type should not call this routine, they should instead call 'hash_value'.
Return Value
A hash_code combining all of args.
Parameters
Name |
Description |
args |
Values to combine into one hash code. |
See Also
hash_value overload (via ADL) for the type. For integer and pointer types it directly combines their data into the resulting hash_code.
Created with MrDocs