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:73

Member Variables

private size_t value

Method Overview

Methods

hash_code()

Description

Default construct a hash_code. Note that this leaves the value uninitialized.

Declared at: llvm/include/llvm/ADT/Hashing.h:79

hash_code(size_t value)

Description

Form a hash code directly from a numerical value.

Declared at: llvm/include/llvm/ADT/Hashing.h:82

Parameters

size_t value

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:85