The OpenD Programming Language

HashMap.get

get with default value it infers @safe, @nogc from user data: do not return ptr and do not thow

struct HashMap(K, V, Allocator = Mallocator, bool GCRangesAllowed = true)
const
V
get
(
T
)

Return Value

Type: V

value from hash, or defaultValue if key not found (see also getOrAdd). defaultValue can be callable.

Meta