A container which contains a string, which it owns, plus a precomputed hash.

Synopsis

Declared in <llvm/ADT/CachedHashString.h>

class CachedHashString;

Description

We do not null‐terminate the string.

Member Functions

Name

Description

CachedHashString [constructor]

Constructors

~CachedHashString [destructor]

Destroy and free owned string storage when not empty.

operator=

Assign from Other using copy‐and‐swap.

hash

Return the cached hash value.

size

Return the string length in bytes.

val

Return the owned string as a StringRef.

operator CachedHashStringRef

Implicit conversion to a non‐owning CachedHashStringRef.

operator StringRef

Implicit conversion to a non‐owning StringRef view.

Friends

Name

Description

llvm::swap

Exchange owned storage and hash state between LHS and RHS.

llvm::DenseMapInfo<CachedHashString>

Created with MrDocs