HashMap.opBinaryRight

Implement the 'in' operator for a map.

The in operator on a map will return a pointer to a value, which will be null when no corresponding value is set for a given key.

struct HashMap(K, V)
inout(V)*
opBinaryRight
inout
(
string op
)
(
K key
)
if (
op == "in"
)
if (
isAssignmentCopyable!(Unqual!K) &&
isAssignmentCopyable!(Unqual!V)
)

Parameters

key
Type: K

The key in the map.

Return Value

Type: inout(V)*

A pointer to a value, a null pointer if a value is not set.

Meta