class hash_code
Declaration
class hash_code { /* full declaration omitted */ };
Description
An opaque object representing a hash code. This object represents the result of hashing some entity. It is intended to be used to implement hashtables or other hashing-based data structures. While it wraps and exposes a numeric value, this value should not be trusted to be stable or predictable across processes or executions. In order to obtain the hash_code for an object 'x':
Declared at: llvm/include/llvm/ADT/Hashing.h:71
Method Overview
- public hash_code()
- public hash_code(size_t value)
- public size_t operator unsigned long() const
Methods
¶hash_code()
hash_code()
Description
Default construct a hash_code. Note that this leaves the value uninitialized.
Declared at: llvm/include/llvm/ADT/Hashing.h:77
¶hash_code(size_t value)
hash_code(size_t value)
Description
Form a hash code directly from a numerical value.
Declared at: llvm/include/llvm/ADT/Hashing.h:80
Parameters
- size_t value
¶size_t operator unsigned long() const
size_t operator unsigned long() const
Description
Convert the hash code to its numerical value for use.
Declared at: llvm/include/llvm/ADT/Hashing.h:83