Return the value for Key, or a default‐constructed value if absent.

Synopsis

Declared in <llvm/ADT/StringMap.h>

[[nodiscard]]
ValueTy
lookup(StringRef Key) const;

Return Value

The mapped value for Key, or a default‐constructed value.

Note

The return value should not be discarded.

Parameters

Name

Description

Key

String key to look up.

Created with MrDocs